libcli/smb: Fix compiler errors when building with --address-sanitizer
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 03:42:15 +0000 (15:42 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:12 +0000 (04:40 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
libcli/smb/smbXcli_base.c

index 43323743cc5c86ebce08aa467f58aec39b0d0849..135538b0746cb380105b4d5fe86785c8bc505637 100644 (file)
@@ -3501,8 +3501,8 @@ static NTSTATUS smb2cli_conn_dispatch_incoming(struct smbXcli_conn *conn,
 {
        struct tevent_req *req;
        struct smbXcli_req_state *state = NULL;
-       struct iovec *iov;
-       int i, num_iov;
+       struct iovec *iov = NULL;
+       int i, num_iov = 0;
        NTSTATUS status;
        bool defer = true;
        struct smbXcli_session *last_session = NULL;