summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-12 13:53:01 +0100
committerVolker Lendecke <vl@samba.org>2010-01-12 13:55:07 +0100
commit373dcf45cf3d8782c6486958c2ee108e4c8ebba5 (patch)
treed89c45aa964b38e5e31fd184b71d17a45d78e8f8 /source3
parent3b8225490321bf29f195d93bb102cb311c61b5d6 (diff)
downloadsamba-373dcf45cf3d8782c6486958c2ee108e4c8ebba5.tar.gz
samba-373dcf45cf3d8782c6486958c2ee108e4c8ebba5.tar.xz
samba-373dcf45cf3d8782c6486958c2ee108e4c8ebba5.zip
s3: Remove a pointless if-statement
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 1ab21e1b4d7..30b27d4596d 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -6394,9 +6394,8 @@ NTSTATUS pdb_init_ldapsam(struct pdb_methods **pdb_method, const char *location)
trim_char( uri, '\"', '\"' );
nt_status = pdb_init_ldapsam_common(pdb_method, uri);
- if (uri) {
- TALLOC_FREE(uri);
- }
+
+ TALLOC_FREE(uri);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;