Allocation of 'struct smb_composite_connect' happens without zeroing
so that smb_composite_connect_send() thinks that connection
already exists and fails on its handling.
Signed-off-by: Aliaksei Karaliou <akaraliou@panasas.com>
Reviewed-by: Douglas Bagnall <dbagnall@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
switch (state[i]->mode){
/*open multiple connections with the same userid */
case START:
- smb_con = talloc(
- tctx,struct smb_composite_connect) ;
+ smb_con = talloc_zero(
+ tctx,struct smb_composite_connect);
state[i]->req_params=smb_con;
state[i]->mode=OPEN_CONNECTION;
req1 = torture_connect_async(