From: Günther Deschner Date: Wed, 11 Jul 2007 13:23:56 +0000 (+0000) Subject: r23835: Pass down a struct GUID to ads_get_attrname_by_guid() directly. X-Git-Tag: samba-misc-tags/initial-v3-2-unstable~746 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4d5206d0bcbee713790834f119b182e0b419e8c;p=thirdparty%2Fsamba.git r23835: Pass down a struct GUID to ads_get_attrname_by_guid() directly. Guenther --- diff --git a/source/libads/ldap_schema.c b/source/libads/ldap_schema.c index 2672d883066..1cdd51faca9 100644 --- a/source/libads/ldap_schema.c +++ b/source/libads/ldap_schema.c @@ -109,25 +109,20 @@ out: const char *ads_get_attrname_by_guid(ADS_STRUCT *ads, const char *schema_path, TALLOC_CTX *mem_ctx, - const char *schema_guid) + const struct GUID *schema_guid) { ADS_STATUS rc; LDAPMessage *res = NULL; char *expr = NULL; const char *attrs[] = { "lDAPDisplayName", NULL }; const char *result = NULL; - struct GUID guid; char *guid_bin = NULL; if (!ads || !mem_ctx || !schema_guid) { goto done; } - if (!NT_STATUS_IS_OK(GUID_from_string(schema_guid, &guid))) { - goto done; - } - - guid_bin = guid_binstring(&guid); + guid_bin = guid_binstring(schema_guid); if (!guid_bin) { goto done; }