summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-07-02 20:45:26 +0000
committermiod <miod@openbsd.org>2014-07-02 20:45:26 +0000
commit9e757219c0bca2aa72359dcfea4c46036408d31d (patch)
tree508469e7f2791ebb3bf5be07912ba5c52fb00651 /lib/libssl/d1_both.c
parentWarnings. I haz them. (diff)
downloadwireguard-openbsd-9e757219c0bca2aa72359dcfea4c46036408d31d.tar.xz
wireguard-openbsd-9e757219c0bca2aa72359dcfea4c46036408d31d.zip
Memory leak in error path of the day, from clang via dhill@bitrig;
ok dhill@bitrig
Diffstat (limited to 'lib/libssl/d1_both.c')
-rw-r--r--lib/libssl/d1_both.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/d1_both.c b/lib/libssl/d1_both.c
index 67efb3346c3..bd4267238ff 100644
--- a/lib/libssl/d1_both.c
+++ b/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: d1_both.c,v 1.21 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: d1_both.c,v 1.22 2014/07/02 20:45:26 miod Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (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)
goto err;
frag_len -= i;
}
- return DTLS1_HM_FRAGMENT_RETRY;
+ i = DTLS1_HM_FRAGMENT_RETRY;
+ goto err;
}
/* read the body of the fragment (header has already been read */