Skip to content

Commit 25a975b

Browse files
committed
Potential leak on multiple Host in AuthServer.
1 parent 601ddb0 commit 25a975b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/conf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ parse_auth_server(FILE *file, const char *filename, int *linenum)
298298

299299
switch (opcode) {
300300
case oAuthServHostname:
301+
/* Coverity rightfully pointed out we could have duplicates here. */
302+
if (NULL != host)
303+
free(host);
301304
host = safe_strdup(p2);
302305
break;
303306
case oAuthServPath:

0 commit comments

Comments
 (0)