From 8769b2e0418edd9df8257ab12cfc7fc59f9fdd35 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 1 Mar 2018 19:13:46 +0100 Subject: [PATCH] ocserv: avoid crash when --pid-file is used Resolves #143 Signed-off-by: Nikos Mavrogiannopoulos --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 9db330fa..694c064c 100644 --- a/src/config.c +++ b/src/config.c @@ -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'},