diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-10-03 07:59:56 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-10-03 07:59:56 +0000 |
commit | 6eb6d9af85caf2b0d458746a2c653ac325e0a687 (patch) | |
tree | 0644bd44fae929779707c0bef533119067319a90 /usr.sbin | |
parent | 381dcf8bb4632e0cc8705e103f30a6b5123b68bc (diff) |
dont dereference garbage pointer, from martynas@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/ssl.c b/usr.sbin/smtpd/ssl.c index 7f323fe640a..02c35430268 100644 --- a/usr.sbin/smtpd/ssl.c +++ b/usr.sbin/smtpd/ssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.c,v 1.21 2009/09/22 08:23:09 jj Exp $ */ +/* $OpenBSD: ssl.c,v 1.22 2009/10/03 07:59:55 jacekm Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -598,7 +598,7 @@ SSL * ssl_client_init(int fd, char *cert, size_t certsz, char *key, size_t keysz) { SSL_CTX *ctx; - SSL *ssl; + SSL *ssl = NULL; int rv = -1; ctx = ssl_ctx_create(); |