Merge pull request #33 from facebook/repair_printf_vulnerability

Add specifier to LOG func
This commit is contained in:
RollerMatic 2022-08-22 15:46:08 -07:00 committed by GitHub
commit 1be1defb6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ get_authen_continue(void)
"when expecting authentication cont", session.peer,
hdr->type, hdr->seq_no) == -1)
strcpy(msg, "");
report(LOG_ERR, msg);
report(LOG_ERR, "%s", msg);
send_authen_error(msg);
return(NULL);
}