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:
6edfbbd
)
libwbclient: Remove a pointless check
author
Volker Lendecke
<vl@samba.org>
Sat, 2 Jan 2010 19:09:31 +0000
(20:09 +0100)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/nsswitch/libwbclient/wbc_util.c
b/nsswitch/libwbclient/wbc_util.c
index 16828ae5df659fc5fc1ccad4a9a0377a419e798e..24699e91c4f59c60c38bab39746ece0e8bedcd1d 100644
(file)
--- a/
nsswitch/libwbclient/wbc_util.c
+++ b/
nsswitch/libwbclient/wbc_util.c
@@
-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;