lib/ntlm: ret_string fix memory allocation check
Assignment to '*s'. Do not test 's'. s
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user