summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElrond <elrond@samba.org>2000-04-05 18:02:05 +0000
committerElrond <elrond@samba.org>2000-04-05 18:02:05 +0000
commitfc81e1f726b01f66c1244bd9133dae2012be2cb8 (patch)
tree99a4064e94163138e8ff573539cab28600ebfcef
parent6a768e67d8225c738557090ddb7167c13d586753 (diff)
downloadsamba-fc81e1f726b01f66c1244bd9133dae2012be2cb8.tar.gz
Another SMB_ASSERT in cli_pipe.c.
This time it got hit by an anonymous enumusers in rpcclient. Ohh, don't ask me, what's special about enumusers.
-rw-r--r--source/rpc_client/cli_pipe.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index 3ad25c2f611..6a1e7e5b273 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -589,11 +589,10 @@ BOOL cli_send_and_rcv_pdu_trans(struct cli_connection *con,
return False;
}
- SMB_ASSERT(auth->cli_decode_pdu != NULL);
-
- if (rhdr.auth_len != 0 &&
- !auth->cli_decode_pdu(con, rdata, rhdr.frag_len,
- rhdr.auth_len))
+ if (rhdr.auth_len != 0
+ && auth->cli_decode_pdu
+ && !auth->cli_decode_pdu(con, rdata, rhdr.frag_len,
+ rhdr.auth_len))
{
return False;
}