]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
xgetXXbyYY: tfix
authorAlejandro Colomar <alx@kernel.org>
Sat, 27 May 2023 01:19:26 +0000 (03:19 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 30 May 2023 18:56:55 +0000 (13:56 -0500)
It seems obvious that it was a typo.

Link: <https://github.com/shadow-maint/shadow/pull/729#discussion_r1207551013>
Fixes: e73a2194b3d2 ("xgetXXbyYY: Handle DUP_FUNCTION failure")
Cc: Samanta Navarro <ferivoz@riseup.net>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
libmisc/xgetXXbyYY.c

index e977657c8af1a4e44df0ec68b9db4e73e17442a4..78034bc0ed2f99ab11769cd76b98639a8575808d 100644 (file)
@@ -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));