summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-05-01 21:44:20 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-05-01 21:44:20 +0000
commit1f30fe7144d8f104eb0847bcbca69a1ffdc0281f (patch)
tree85987c3f3492c7c77a745b7e1612ceaaa04eec55
parent500d59a90fb42b50a493f9288019f4067fe97b48 (diff)
initialize secret to NULL otherwise we may try to free a junk pointer when
F_AUTH is not set. i was going to look into the issue, but i have received a diff from Simon Betrang <janus@errornet.de>, thanks !
-rw-r--r--usr.sbin/smtpd/lka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index dc9cf8bbbd1..b9bfec2d841 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.43 2009/04/28 23:11:25 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.44 2009/05/01 21:44:19 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -368,7 +368,7 @@ lka_dispatch_mta(int sig, short event, void *p)
int mxcnt;
int error;
struct mxhost mxhost;
- char *secret;
+ char *secret = NULL;
mxreq = imsg.data;
mxrep.id = mxreq->id;