diff options
author | Volker Lendecke <vl@samba.org> | 2018-03-30 12:32:26 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-04-04 00:44:22 +0200 |
commit | 37dcbe173068514aeda6361c7168c465bdf65415 (patch) | |
tree | a0f933d5913b3eb090b671df8a2a64cc5aa540b6 /source4/lib | |
parent | 5ebb1dd18e58df1ea5da20bc34d9900290ada65f (diff) | |
download | samba-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.c | 1 |
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); |