From 0ce973a59ab3393481ba7c434a7353b5007cba71 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 2 Apr 2013 15:06:13 -0400 Subject: [PATCH] gssd: Fix segfault when using -R option The getopt string did not add : after the R option resulting in a sefgault whenever -R was used as optarg is NULL and it is dereferenced. Signed-off-by: Simo Sorce Signed-off-by: Steve Dickson --- utils/gssd/gssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c index 0be2517..07b1e52 100644 --- a/utils/gssd/gssd.c +++ b/utils/gssd/gssd.c @@ -102,7 +102,7 @@ main(int argc, char *argv[]) char *progname; memset(ccachesearch, 0, sizeof(ccachesearch)); - while ((opt = getopt(argc, argv, "fvrlmnMp:k:d:t:R")) != -1) { + while ((opt = getopt(argc, argv, "fvrlmnMp:k:d:t:R:")) != -1) { switch (opt) { case 'f': fg = 1; -- 2.39.5