summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/sock.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-15 15:17:35 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-02-15 15:17:35 +0000
commit9cf096e1c1302303d217d69377b05cce9e061962 (patch)
treefd384fd958ff2218a13be329e376b16efee15038 /usr.bin/cvs/sock.c
parentbb69d46a8dee88e58ae56c4b56c4616df4d60b7f (diff)
avoid crashing when setting a variable with cvsd_set() that was not
initialized with a dynamically-allocated string. spotted by mpech@
Diffstat (limited to 'usr.bin/cvs/sock.c')
-rw-r--r--usr.bin/cvs/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/sock.c b/usr.bin/cvs/sock.c
index feedb9515ee..98435a1aea6 100644
--- a/usr.bin/cvs/sock.c
+++ b/usr.bin/cvs/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.9 2005/01/27 20:45:18 jfb Exp $ */
+/* $OpenBSD: sock.c,v 1.10 2005/02/15 15:17:34 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -43,7 +43,7 @@
volatile sig_atomic_t cvs_sock_doloop;
-char *cvsd_sock_path = CVSD_SOCK_PATH;
+char *cvsd_sock_path;
/* daemon API */
#ifdef CVSD