1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Don't return NULL pointers for now.

We should look into how to deal with NULL v "" strings, and the NTLMSSP code
underneath properly at some stage.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 4a3c6c62d9
commit dc934412b0

View File

@ -234,9 +234,9 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
pull_string(NULL, p, blob->data + ptr, sizeof(p),
len1,
STR_UNICODE|STR_NOALIGN);
(*ps) = strdup(p);
(*ps) = smb_xstrdup(p);
} else {
(*ps) = NULL;
(*ps) = smb_xstrdup("");
}
break;
case 'A':
@ -255,9 +255,9 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
pull_string(NULL, p, blob->data + ptr, sizeof(p),
len1,
STR_ASCII|STR_NOALIGN);
(*ps) = strdup(p);
(*ps) = smb_xstrdup(p);
} else {
(*ps) = NULL;
(*ps) = smb_xstrdup("");
}
break;
case 'B':