]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Use unsigned long in ber_write_OID_String
authorVolker Lendecke <vl@samba.org>
Thu, 23 May 2024 14:04:52 +0000 (16:04 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 4 Jun 2024 07:11:35 +0000 (07:11 +0000)
This is what smb_strtoul returns, so use it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/asn1.c

index 1a92a55c2477adbd4fbff39864e6c6346279f049..5376c21cac177c5a2cbe4c005a4e7ee625239edf 100644 (file)
@@ -276,7 +276,7 @@ bool asn1_write_BitString(struct asn1_data *data, const void *p, size_t length,
 
 bool ber_write_OID_String(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char *OID)
 {
-       unsigned int v, v2;
+       unsigned long int v, v2;
        const char *p = (const char *)OID;
        char *newp;
        int i;