public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] _nss_nis_initgroups_dyn: Return error status
@ 2015-02-26 14:47 Florian Weimer
  2015-03-01 19:18 ` Mike Frysinger
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Florian Weimer @ 2015-02-26 14:47 UTC (permalink / raw)
  To: GNU C Library

This seems to have been an oversight.  An error can be returned if the
function is left with “goto done;”.

2015-02-26  Florian Weimer  <fweimer@redhat.com>

	* nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
	Return error status.

diff --git a/nis/nss_nis/nis-initgroups.c b/nis/nss_nis/nis-initgroups.c
index d22b241..ed5c26b 100644
--- a/nis/nss_nis/nis-initgroups.c
+++ b/nis/nss_nis/nis-initgroups.c
@@ -326,5 +326,5 @@ done:
       free (intern.next);
     }

-  return NSS_STATUS_SUCCESS;
+  return status;
 }

-- 
Florian Weimer / Red Hat Product Security

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-06-30 11:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 14:47 [PATCH] _nss_nis_initgroups_dyn: Return error status Florian Weimer
2015-03-01 19:18 ` Mike Frysinger
2016-06-16  9:31 ` Andreas Schwab
2016-06-16  9:35   ` Florian Weimer
2016-06-16 11:24     ` Andreas Schwab
2016-06-16 14:06 ` [PATCH] Return proper status from _nss_nis_initgroups_dyn (bug 20262) Andreas Schwab
2016-06-23 16:51   ` Florian Weimer
2016-06-27  7:17     ` Andreas Schwab
2016-06-28 13:16       ` Florian Weimer
2016-06-28 14:21         ` Andreas Schwab
2016-06-28 14:30           ` Florian Weimer
2016-06-28 14:40             ` Andreas Schwab
2016-06-30 10:26               ` Florian Weimer
2016-06-30 10:47                 ` Andreas Schwab
2016-06-30 11:13                   ` Florian Weimer
2016-06-30 11:48                     ` Andreas Schwab
2016-06-30 11:51                       ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).