aboutsummaryrefslogtreecommitdiff
path: root/conf/pam_conv1/pam_conv_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'conf/pam_conv1/pam_conv_y.y')
-rw-r--r--conf/pam_conv1/pam_conv_y.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/pam_conv1/pam_conv_y.y b/conf/pam_conv1/pam_conv_y.y
index 365d86f3..94a22a44 100644
--- a/conf/pam_conv1/pam_conv_y.y
+++ b/conf/pam_conv1/pam_conv_y.y
@@ -158,11 +158,19 @@ path
: TOK {
/* XXX - this could be used to check if file present */
$$ = strdup(yytext);
+ if ($$ == NULL) {
+ yyerror("failed to duplicate path");
+ exit(1);
+ }
}
tok
: TOK {
$$ = strdup(yytext);
+ if ($$ == NULL) {
+ yyerror("failed to duplicate token");
+ exit(1);
+ }
}
%%