From 42ea38d7d06673bf6dc16ccfbd19e27f0a696b28 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Jun 15 2012 13:44:21 +0000 Subject: SSS_CLIENT: Fix uninitialized value error This would cause a crash if we jump to the done: label before it has been allocated. --- diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index 3cffbb2..50c5048 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -1086,7 +1086,7 @@ static int send_and_receive(pam_handle_t *pamh, struct pam_items *pi, #ifdef HAVE_SELINUX char *path = NULL; char *tmp_path = NULL; - char *services; + char *services = NULL; ssize_t written; int len; int fd;