ocserv: avoid crash when --pid-file is used

Resolves #143

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2018-03-01 19:13:46 +01:00
parent cc12fe7131
commit 8769b2e041

View File

@@ -1127,7 +1127,7 @@ static void check_cfg(struct perm_cfg_st *perm_config, unsigned silent)
static const struct option long_options[] = {
{"debug", 1, 0, 'd'},
{"config", 1, 0, 'c'},
{"pid-file", 0, 0, 'p'},
{"pid-file", 1, 0, 'p'},
{"test-config", 0, 0, 't'},
{"foreground", 0, 0, 'f'},
{"help", 0, 0, 'h'},