Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
req->encrypted = encrypted;
req->sconn = sconn;
req->xconn = xconn;
- status = smb1srv_tcon_lookup(xconn, req->tid, now, &tcon);
- if (NT_STATUS_IS_OK(status)) {
- req->conn = tcon->compat;
- } else {
- req->conn = NULL;
+ req->conn = NULL;
+ if (xconn != NULL) {
+ status = smb1srv_tcon_lookup(xconn, req->tid, now, &tcon);
+ if (NT_STATUS_IS_OK(status)) {
+ req->conn = tcon->compat;
+ }
}
req->chain_fsp = NULL;
req->smb2req = NULL;