From e07917e98ca1303c4329f3d556e2ea402720a0bb Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 18 Dec 2023 10:10:08 +0100 Subject: conf/pam_conv1: use return instead of exit in main Calling exit directly circumvents the stack protector of the main function. Give it a chance to notice issues. Co-authored-by: Benny Baumann Signed-off-by: Tobias Stoeckmann --- conf/pam_conv1/pam_conv_y.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf') diff --git a/conf/pam_conv1/pam_conv_y.y b/conf/pam_conv1/pam_conv_y.y index 94a22a44..72a5dab3 100644 --- a/conf/pam_conv1/pam_conv_y.y +++ b/conf/pam_conv1/pam_conv_y.y @@ -211,8 +211,8 @@ int main(void) { if (mkdir(PAM_D, PAM_D_MODE) != 0) { yyerror(PAM_D " already exists.. aborting"); - exit(1); + return 1; } yyparse(); - exit(0); + return 0; } -- cgit v1.2.3