summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/pam_get_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/openpam/lib/pam_get_user.c')
-rw-r--r--contrib/openpam/lib/pam_get_user.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/openpam/lib/pam_get_user.c b/contrib/openpam/lib/pam_get_user.c
index f35a887..5681c53 100644
--- a/contrib/openpam/lib/pam_get_user.c
+++ b/contrib/openpam/lib/pam_get_user.c
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/openpam/lib/pam_get_user.c#13 $
+ * $P4: //depot/projects/openpam/lib/pam_get_user.c#14 $
*/
#include <sys/param.h>
@@ -78,7 +78,8 @@ pam_get_user(pam_handle_t *pamh,
free(resp);
if (r != PAM_SUCCESS)
RETURNC(r);
- RETURNC(pam_get_item(pamh, PAM_USER, (const void **)user));
+ r = pam_get_item(pamh, PAM_USER, (const void **)user);
+ RETURNC(r);
}
/*
OpenPOWER on IntegriCloud