[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3930-g9d6bfc6

Volker Lendecke vlendec at samba.org
Sun Aug 31 10:21:41 GMT 2008


The branch, v3-3-test has been updated
       via  9d6bfc6c216304f31456cf181dc5e23824e2e54f (commit)
      from  bdc3d9833ac448f56eeccfed70133e712e91c078 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 9d6bfc6c216304f31456cf181dc5e23824e2e54f
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Aug 31 12:15:35 2008 +0200

    Fix Coverity ID 589, dead code
    (cherry picked from commit 67c0835226e189deba5856710a1dea19ac5f30fd)

-----------------------------------------------------------------------

Summary of changes:
 source/nsswitch/libwbclient/wbc_sid.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/libwbclient/wbc_sid.c b/source/nsswitch/libwbclient/wbc_sid.c
index 324a19b..f4ffa4e 100644
--- a/source/nsswitch/libwbclient/wbc_sid.c
+++ b/source/nsswitch/libwbclient/wbc_sid.c
@@ -294,9 +294,18 @@ wbcErr wbcLookupSid(const struct wbcDomainSid *sid,
 		}
 	}
 	else {
+#if 0
+		/*
+		 * Found by Coverity: In this particular routine we can't end
+		 * up here with a non-NULL name. Further up there are just two
+		 * exit paths that lead here, neither of which leave an
+		 * allocated name. If you add more paths up there, re-activate
+		 * this.
+		 */
 		if (name != NULL) {
 			talloc_free(name);
 		}
+#endif
 		if (domain != NULL) {
 			talloc_free(domain);
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list