s3: "hex_encode" does the same as "binary_string"
[samba.git] / source3 / lib / util_sid.c
index f6210c13fd9caf2710ad1b56d72bc1b12e9c9b8b..ef46a38f8aac6d988a5e691a1560d4d7d8e9e8cc 100644 (file)
@@ -121,7 +121,7 @@ char *sid_binstring_hex(const struct dom_sid *sid)
        if (!buf)
                return NULL;
        sid_linearize(buf, len, sid);
-       s = binary_string(buf, len);
+       hex_encode(buf, len, &s);
        free(buf);
        return s;
 }