1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s4:samdb_create_foreign_security_principal - proof error code of "samdb_msg_add_string"

This commit is contained in:
Matthias Dieter Wallnöfer 2010-10-14 22:36:07 +02:00
parent 9e69b22e70
commit 9310da1e2b

View File

@ -2344,9 +2344,12 @@ NTSTATUS samdb_create_foreign_security_principal(struct ldb_context *sam_ctx, TA
return NT_STATUS_NO_MEMORY;
}
samdb_msg_add_string(sam_ctx, msg, msg,
"objectClass",
"foreignSecurityPrincipal");
ret = samdb_msg_add_string(sam_ctx, msg, msg,
"objectClass", "foreignSecurityPrincipal");
if (ret != LDB_SUCCESS) {
talloc_free(sidstr);
return NT_STATUS_NO_MEMORY;
}
/* create the alias */
ret = ldb_add(sam_ctx, msg);