From: Volker Lendecke Date: Fri, 30 Mar 2018 17:32:26 +0000 (-0500) Subject: libhttp: Fix CID 1273001 Dereference after null check X-Git-Tag: talloc-2.1.13~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37dcbe173068514aeda6361c7168c465bdf65415;p=thirdparty%2Fsamba.git libhttp: Fix CID 1273001 Dereference after null check Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- 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);