From 9ab9fe04f2b9da94991dd6c7ff258cab75ec9660 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 17 Jan 2022 16:57:54 -0500 Subject: [PATCH] lib/ntlm: ret_string fix memory allocation check Assignment to '*s'. Do not test 's'. s --- lib/ntlm/ntlm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ntlm/ntlm.c b/lib/ntlm/ntlm.c index 622aa6c25..d75752ea0 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -354,7 +354,7 @@ ret_string(krb5_storage *sp, int ucs2, size_t len, char **s) utf8len += 1; *s = malloc(utf8len); - if (s == NULL) { + if (*s == NULL) { ret = ENOMEM; goto out; }