lib/ntlm: ret_string fix memory allocation check

Assignment to '*s'.   Do not test 's'.
s
This commit is contained in:
Jeffrey Altman
2022-01-17 16:57:54 -05:00
parent 15ef584f59
commit 9ab9fe04f2

View File

@@ -354,7 +354,7 @@ ret_string(krb5_storage *sp, int ucs2, size_t len, char **s)
utf8len += 1; utf8len += 1;
*s = malloc(utf8len); *s = malloc(utf8len);
if (s == NULL) { if (*s == NULL) {
ret = ENOMEM; ret = ENOMEM;
goto out; goto out;
} }