summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-07-20 23:15:28 +0000
committerdoug <doug@openbsd.org>2015-07-20 23:15:28 +0000
commit1ce6571f51770f4586408466e97e0d512d597fe6 (patch)
tree93ceb5566463ac0df558749c5f9fc8375b52757f /lib/libssl/src
parentSometimes, the computer's move was printed, but the computer's men didn't (diff)
downloadwireguard-openbsd-1ce6571f51770f4586408466e97e0d512d597fe6.tar.xz
wireguard-openbsd-1ce6571f51770f4586408466e97e0d512d597fe6.zip
Correct #if/else logic in BIO's dgram_ctrl.
Coverity issue 72741 noticed that ret is being overwritten before use. The actual issue is that the #if/else logic is guarding the wrong lines. Besides impacting ret, this also made the case's break logic wrong because it was in the wrong location. ok bcook@ beck@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/bio/bss_dgram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c
index a07834b62ce..a9657402ce6 100644
--- a/lib/libssl/src/crypto/bio/bss_dgram.c
+++ b/lib/libssl/src/crypto/bio/bss_dgram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_dgram.c,v 1.40 2015/02/09 10:55:33 jsing Exp $ */
+/* $OpenBSD: bss_dgram.c,v 1.41 2015/07/20 23:15:28 doug Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -423,10 +423,10 @@ dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
ret = -1;
break;
}
- ret = -1;
#else
- break;
+ ret = -1;
#endif
+ break;
case BIO_CTRL_DGRAM_QUERY_MTU:
#if defined(IP_MTU)
addr_len = (socklen_t)sizeof(addr);