git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libhttp: Fix CID 1273001 Dereference after null check
[metze/samba/wip.git]
/
source4
/
lib
/
http
/
http.c
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);