summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 21:21:17 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 22:07:23 +0100
commitc58eb1f8c52107a211a8604d955ed27d169d44f1 (patch)
tree2a4a27c355c858a5c5b6125e7112d5329c07f75d
parent2581cb7ada25432474f06525ffa9b857bae91e8f (diff)
downloadsamba-c58eb1f8c52107a211a8604d955ed27d169d44f1.tar.gz
samba-c58eb1f8c52107a211a8604d955ed27d169d44f1.tar.bz2
samba-c58eb1f8c52107a211a8604d955ed27d169d44f1.zip
s3: Fix Coverity ID 2148, FORWARD_NULL
Further down we unconditionally reference *info
-rw-r--r--nsswitch/libwbclient/wbc_pam.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index 21f2c5d050..585dfcfaf6 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -1160,9 +1160,8 @@ wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
ZERO_STRUCT(request);
ZERO_STRUCT(response);
- if (info != NULL) {
- *info = NULL;
- }
+ *info = NULL;
+
if (error != NULL) {
*error = NULL;
}