summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-03-30 12:32:26 -0500
committerJeremy Allison <jra@samba.org>2018-04-04 00:44:22 +0200
commit37dcbe173068514aeda6361c7168c465bdf65415 (patch)
treea0f933d5913b3eb090b671df8a2a64cc5aa540b6 /source4/lib
parent5ebb1dd18e58df1ea5da20bc34d9900290ada65f (diff)
downloadsamba-37dcbe173068514aeda6361c7168c465bdf65415.tar.gz
libhttp: Fix CID 1273001 Dereference after null check
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/http/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/http/http.c b/source4/lib/http/http.c
index 10b49cd14fe..9218c19ce31 100644
--- 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);