diff options
author | Simo Sorce <simo@redhat.com> | 2013-04-02 15:06:13 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2013-04-02 15:08:17 -0400 |
commit | 0ce973a59ab3393481ba7c434a7353b5007cba71 (patch) | |
tree | 5c54762d2aeb3e3461847b8a5d5a5409ac1f75a3 | |
parent | 0ac50211fefb0d398ecc958ebe725dc6b6285103 (diff) | |
download | nfs-utils-0ce973a59ab3393481ba7c434a7353b5007cba71.tar.gz nfs-utils-0ce973a59ab3393481ba7c434a7353b5007cba71.tar.xz nfs-utils-0ce973a59ab3393481ba7c434a7353b5007cba71.zip |
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 <simo@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/gssd/gssd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |