Skip to content

Commit 2d5503d

Browse files
committed
SSLAvailable: add LOG_ERR for incorrect syntax.
1 parent ab80983 commit 2d5503d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/conf.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,11 @@ parse_auth_server(FILE * file, const char *filename, int *linenum)
329329
break;
330330
case oAuthServSSLAvailable:
331331
ssl_available = parse_boolean_value(p2);
332-
if (ssl_available < 0)
333-
ssl_available = 0;
332+
if (ssl_available < 0) {
333+
debug(LOG_WARNING, "Bad syntax for Parameter: SSLAvailable on line %d " "in %s."
334+
"The syntax is yes or no." , *linenum, filename);
335+
exit(-1);
336+
}
334337
break;
335338
case oBadOption:
336339
default:

0 commit comments

Comments
 (0)