gssd: Fix segfault when using -R option
authorSimo Sorce <simo@redhat.com>
Tue, 2 Apr 2013 19:06:13 +0000 (15:06 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 2 Apr 2013 19:08:17 +0000 (15:08 -0400)
commit0ce973a59ab3393481ba7c434a7353b5007cba71
tree5c54762d2aeb3e3461847b8a5d5a5409ac1f75a3
parent0ac50211fefb0d398ecc958ebe725dc6b6285103
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>
utils/gssd/gssd.c