Fix the build.
[tprouty/samba.git] / source4 / libcli / smb_composite / connect.c
index 416863bbe1c845b13d7ad5f04bf4603e59864034..980a418619644f7ce51ce69eed7b9df9e5750b2f 100644 (file)
@@ -470,6 +470,7 @@ struct composite_context *smb_composite_connect_send(struct smb_composite_connec
        state = talloc_zero(c, struct connect_state);
        if (state == NULL) goto failed;
 
+       if (io->in.gensec_settings == NULL) goto failed;
        state->io = io;
 
        c->state = COMPOSITE_STATE_IN_PROGRESS;