aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-12-18 10:10:08 +0100
committerDmitry V. Levin <ldv@strace.io>2023-12-18 09:10:08 +0000
commite07917e98ca1303c4329f3d556e2ea402720a0bb (patch)
tree0aac69a3a7ec64781c00e09b2ef6bec349ba2e69 /conf
parent1edcc33af20f7279ad2ce5d551f7d6c779067132 (diff)
downloadpam-e07917e98ca1303c4329f3d556e2ea402720a0bb.tar.gz
pam-e07917e98ca1303c4329f3d556e2ea402720a0bb.tar.bz2
pam-e07917e98ca1303c4329f3d556e2ea402720a0bb.zip
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 <BenBE@geshi.org> Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'conf')
-rw-r--r--conf/pam_conv1/pam_conv_y.y4
1 files changed, 2 insertions, 2 deletions
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;
}