From: Alejandro Colomar Date: Sat, 27 May 2023 01:19:26 +0000 (+0200) Subject: xgetXXbyYY: tfix X-Git-Tag: 4.14.0-rc1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8741a400d6a6208c334c5228b9f2db28401b578;p=thirdparty%2Fshadow.git xgetXXbyYY: tfix It seems obvious that it was a typo. Link: Fixes: e73a2194b3d2 ("xgetXXbyYY: Handle DUP_FUNCTION failure") Cc: Samanta Navarro Cc: Serge Hallyn Signed-off-by: Alejandro Colomar --- diff --git a/libmisc/xgetXXbyYY.c b/libmisc/xgetXXbyYY.c index e977657c8..78034bc0e 100644 --- a/libmisc/xgetXXbyYY.c +++ b/libmisc/xgetXXbyYY.c @@ -69,7 +69,7 @@ /* Build a result structure that can be freed by * the shadow *_free functions. */ LOOKUP_TYPE *ret_result = DUP_FUNCTION(result); - if (NULL == result) { + if (NULL == ret_result) { fprintf (log_get_logfd(), _("%s: out of memory\n"), "x" STRINGIZE(FUNCTION_NAME));