libhttp: Fix CID 1273001 Dereference after null check
[metze/samba/wip.git] / source4 / lib / http / http.c
index 10b49cd14fee94fd6850675005187aa546391d42..9218c19ce31e95363a961d6a1782af67f650ad5f 100644 (file)
@@ -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);