diff options
author | miod <> | 2014-07-02 20:45:26 +0000 |
---|---|---|
committer | miod <> | 2014-07-02 20:45:26 +0000 |
commit | 56a50b2774f131a285755b820b8317f279abf861 (patch) | |
tree | 0914acdbfd4f2a729635dc3ef9b1d73fde2993bb /src | |
parent | 78f55ef8583d41d6ad8f3eeb59c34ab38de8e552 (diff) | |
download | openbsd-56a50b2774f131a285755b820b8317f279abf861.tar.gz openbsd-56a50b2774f131a285755b820b8317f279abf861.tar.bz2 openbsd-56a50b2774f131a285755b820b8317f279abf861.zip |
Memory leak in error path of the day, from clang via dhill@bitrig;
ok dhill@bitrig
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/d1_both.c | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/d1_both.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c index 67efb3346c..bd4267238f 100644 --- a/src/lib/libssl/d1_both.c +++ b/src/lib/libssl/d1_both.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_both.c,v 1.21 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: d1_both.c,v 1.22 2014/07/02 20:45:26 miod Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -609,7 +609,8 @@ dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok) | |||
609 | goto err; | 609 | goto err; |
610 | frag_len -= i; | 610 | frag_len -= i; |
611 | } | 611 | } |
612 | return DTLS1_HM_FRAGMENT_RETRY; | 612 | i = DTLS1_HM_FRAGMENT_RETRY; |
613 | goto err; | ||
613 | } | 614 | } |
614 | 615 | ||
615 | /* read the body of the fragment (header has already been read */ | 616 | /* read the body of the fragment (header has already been read */ |
diff --git a/src/lib/libssl/src/ssl/d1_both.c b/src/lib/libssl/src/ssl/d1_both.c index 67efb3346c..bd4267238f 100644 --- a/src/lib/libssl/src/ssl/d1_both.c +++ b/src/lib/libssl/src/ssl/d1_both.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_both.c,v 1.21 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: d1_both.c,v 1.22 2014/07/02 20:45:26 miod Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -609,7 +609,8 @@ dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok) | |||
609 | goto err; | 609 | goto err; |
610 | frag_len -= i; | 610 | frag_len -= i; |
611 | } | 611 | } |
612 | return DTLS1_HM_FRAGMENT_RETRY; | 612 | i = DTLS1_HM_FRAGMENT_RETRY; |
613 | goto err; | ||
613 | } | 614 | } |
614 | 615 | ||
615 | /* read the body of the fragment (header has already been read */ | 616 | /* read the body of the fragment (header has already been read */ |