This can happen if we fail early and cli hasn't been initialized yet.
Found by covscan.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
ret = true;
done:
- torture_close_connection(cli);
+ if (cli != NULL) {
+ torture_close_connection(cli);
+ }
return ret;
}
ret = true;
done:
- torture_close_connection(cli);
+ if (cli != NULL) {
+ torture_close_connection(cli);
+ }
return ret;
}