mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r11024: r10311@SERNOX: metze | 2005-09-19 11:27:34 +0200
remove doublicate NULL-pointer check metze (This used to be commit eb1dee09652beb6d401cdc2058427db5f18bea67)
This commit is contained in:
parent
cbe9ae1234
commit
0f6791edc6
@ -110,9 +110,6 @@ static struct ldb_dn *winsdb_dn(TALLOC_CTX *mem_ctx, struct nbt_name *name)
|
|||||||
struct ldb_dn *dn;
|
struct ldb_dn *dn;
|
||||||
|
|
||||||
dn = ldb_dn_string_compose(mem_ctx, NULL, "type=%02x", name->type);
|
dn = ldb_dn_string_compose(mem_ctx, NULL, "type=%02x", name->type);
|
||||||
if (dn == NULL) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if (dn && name->name && *name->name) {
|
if (dn && name->name && *name->name) {
|
||||||
dn = ldb_dn_string_compose(mem_ctx, dn, "name=%s", name->name);
|
dn = ldb_dn_string_compose(mem_ctx, dn, "name=%s", name->name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user