projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c9ffd0
)
dgram_pair_read_inner(): Do not move buf pointer if it is NULL
author
Tomas Mraz
<tomas@openssl.org>
Tue, 27 Sep 2022 15:50:35 +0000
(17:50 +0200)
committer
Tomas Mraz
<tomas@openssl.org>
Tue, 27 Sep 2022 15:50:35 +0000
(17:50 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19284)
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 2b99f794e0664f438d92e400def3483a28fa3f2d..fedcd66dd35abced19fba65e97672ced695959aa 100644
(file)
--- a/
crypto/bio/bss_dgram_pair.c
+++ b/
crypto/bio/bss_dgram_pair.c
@@
-745,7
+745,8
@@
static size_t dgram_pair_read_inner(struct bio_dgram_pair_st *b, uint8_t *buf, s
ring_buf_pop(&b->rbuf, src_len);
- buf += src_len;
+ if (buf != NULL)
+ buf += src_len;
total_read += src_len;
sz -= src_len;
}