libwbclient: Remove a pointless check
authorVolker Lendecke <vl@samba.org>
Sat, 2 Jan 2010 19:09:31 +0000 (20:09 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 3 Jan 2010 10:38:22 +0000 (11:38 +0100)
We have dereferenced "blobs" before

nsswitch/libwbclient/wbc_util.c

index 16828ae5df659fc5fc1ccad4a9a0377a419e798e..24699e91c4f59c60c38bab39746ece0e8bedcd1d 100644 (file)
@@ -669,7 +669,7 @@ wbcErr wbcAddNamedBlob(size_t *num_blobs,
 
        wbc_status = WBC_ERR_SUCCESS;
 done:
-       if (!WBC_ERROR_IS_OK(wbc_status) && blobs) {
+       if (!WBC_ERROR_IS_OK(wbc_status)) {
                wbcFreeMemory(*blobs);
        }
        return wbc_status;