git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40dfe4d
)
s3-rpc_client: protect rpc_pipe_np_smb_conn against a NULL struct rpc_pipe_client.
author
Günther Deschner
<gd@samba.org>
Tue, 10 Nov 2009 10:04:08 +0000
(11:04 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 13 Jan 2010 13:00:54 +0000
(14:00 +0100)
Guenther
Part of a fix for bug #6697.
(cherry picked from commit
1fe281e25708b999a3e9ef1d5808a79995fbb438
)
source/rpc_client/cli_pipe.c
patch
|
blob
|
history
diff --git
a/source/rpc_client/cli_pipe.c
b/source/rpc_client/cli_pipe.c
index be84c3934ff97a33ef6bc9e57a7a9d74529065c0..6a5802e97f74320e3865fd51e6651af95c4c29be 100644
(file)
--- a/
source/rpc_client/cli_pipe.c
+++ b/
source/rpc_client/cli_pipe.c
@@
-2348,6
+2348,9
@@
bool rpccli_get_pwd_hash(struct rpc_pipe_client *cli, uint8_t nt_hash[16])
struct cli_state *rpc_pipe_np_smb_conn(struct rpc_pipe_client *p)
{
+ if (p == NULL) {
+ return NULL;
+ }
if (p->transport_type == NCACN_NP) {
return p->trans.np.cli;
}