git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de43e39
)
s3-netapi: Fix Coverity #668: FORWARD_NULL.
author
Günther Deschner
<gd@samba.org>
Wed, 16 Sep 2009 08:27:21 +0000
(10:27 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 16 Sep 2009 08:30:08 +0000
(10:30 +0200)
Guenther
source3/lib/netapi/user.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/user.c
b/source3/lib/netapi/user.c
index f56d433614846e3bf3b5a86fca5a2028c551d419..f95750fae7bd35d4d5fce79a0be998c22caae7f6 100644
(file)
--- a/
source3/lib/netapi/user.c
+++ b/
source3/lib/netapi/user.c
@@
-1696,7
+1696,7
@@
WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
}
done:
- if (is_valid_policy_hnd(&user_handle)) {
+ if (is_valid_policy_hnd(&user_handle)
&& pipe_cli
) {
rpccli_samr_Close(pipe_cli, ctx, &user_handle);
}