git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ebb1dd
)
libhttp: Fix CID 1273001 Dereference after null check
author
Volker Lendecke
<vl@samba.org>
Fri, 30 Mar 2018 17:32:26 +0000
(12:32 -0500)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 Apr 2018 22:44:22 +0000
(
00:44
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/lib/http/http.c
patch
|
blob
|
history
diff --git
a/source4/lib/http/http.c
b/source4/lib/http/http.c
index 10b49cd14fee94fd6850675005187aa546391d42..9218c19ce31e95363a961d6a1782af67f650ad5f 100644
(file)
--- a/
source4/lib/http/http.c
+++ b/
source4/lib/http/http.c
@@
-471,6
+471,7
@@
static int http_read_response_next_vector(struct tstream_context *stream,
/* Sanity checks */
if (!stream || !private_data || !_vector || !_count) {
DEBUG(0, ("%s: Invalid Parameter\n", __func__));
+ return -1;
}
state = talloc_get_type_abort(private_data, struct http_read_response_state);