diff options
author | 2014-08-07 20:02:23 +0000 | |
---|---|---|
committer | 2014-08-07 20:02:23 +0000 | |
commit | 7e9f0113965a38b7be16a68c4ca4d4925fa428eb (patch) | |
tree | c64d553830073b9c0e1cc1e40f443ddea767fe26 /lib/libssl/s3_lib.c | |
parent | When you expect a function to return a particular value, don't put a comment (diff) | |
download | wireguard-openbsd-7e9f0113965a38b7be16a68c4ca4d4925fa428eb.tar.xz wireguard-openbsd-7e9f0113965a38b7be16a68c4ca4d4925fa428eb.zip |
Oops, revert changes commited by mistake. The previous commit was supposed
to only apply to s23_srvr.c.
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r-- | lib/libssl/s3_lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index aa091f51c7c..4631c517ccc 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.72 2014/08/07 19:46:31 miod Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.73 2014/08/07 20:02:23 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2333,7 +2333,7 @@ ssl3_new(SSL *s) SSL3_STATE *s3; if ((s3 = calloc(1, sizeof *s3)) == NULL) - return 0; + goto err; memset(s3->rrec.seq_num, 0, sizeof(s3->rrec.seq_num)); memset(s3->wrec.seq_num, 0, sizeof(s3->wrec.seq_num)); @@ -2341,6 +2341,8 @@ ssl3_new(SSL *s) s->method->ssl_clear(s); return (1); +err: + return (0); } void |