projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd35ed
)
BIO_s_dgram_pair: Correct implementation of BIO_CTRL_DGRAM_GET_LOCAL_ADDR_ENABLE
author
Hugo Landau
<hlandau@openssl.org>
Wed, 9 Aug 2023 16:46:33 +0000
(17:46 +0100)
committer
Hugo Landau
<hlandau@openssl.org>
Fri, 1 Sep 2023 09:45:34 +0000
(10:45 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21715)
crypto/bio/bss_dgram_pair.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bss_dgram_pair.c
b/crypto/bio/bss_dgram_pair.c
index 393af7dab444a45ef99fc39a34b19c3db9c9a2ed..a93b14154cac98f10de78fbc6eba4ecbfe5ba593 100644
(file)
--- a/
crypto/bio/bss_dgram_pair.c
+++ b/
crypto/bio/bss_dgram_pair.c
@@
-695,7
+695,7
@@
static long dgram_mem_ctrl(BIO *bio, int cmd, long num, void *ptr)
/* BIO_dgram_get_local_addr_enable */
case BIO_CTRL_DGRAM_GET_LOCAL_ADDR_ENABLE: /* Non-threadsafe */
-
ret
= (long)dgram_pair_ctrl_get_local_addr_enable(bio);
+
*(int *)ptr
= (long)dgram_pair_ctrl_get_local_addr_enable(bio);
break;
/* BIO_dgram_set_local_addr_enable */