git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b26a9ea
)
libwbclient: Fix null check in process_domain_info_string().
author
Andreas Schneider
<asn@samba.org>
Mon, 17 Dec 2012 13:17:59 +0000
(14:17 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 21 Dec 2012 12:56:00 +0000
(13:56 +0100)
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
nsswitch/libwbclient/wbc_util.c
patch
|
blob
|
history
diff --git
a/nsswitch/libwbclient/wbc_util.c
b/nsswitch/libwbclient/wbc_util.c
index af134ba7e5b410abb0c5388507704687c0e8794b..4060e2521c1b602d1fd1b1d1d83c014017026661 100644
(file)
--- a/
nsswitch/libwbclient/wbc_util.c
+++ b/
nsswitch/libwbclient/wbc_util.c
@@
-466,12
+466,7
@@
static wbcErr process_domain_info_string(struct wbcDomainInfo *info,
}
/* Online/Offline status */
-
r = s;
- if (r == NULL) {
- wbc_status = WBC_ERR_INVALID_RESPONSE;
- BAIL_ON_WBC_ERROR(wbc_status);
- }
if ( strcmp(r, "Offline") == 0) {
info->domain_flags |= WBC_DOMINFO_DOMAIN_OFFLINE;
}