diff options
Diffstat (limited to 'libasn1fix/asn1fix.c')
-rw-r--r-- | libasn1fix/asn1fix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libasn1fix/asn1fix.c b/libasn1fix/asn1fix.c index 5ee73a87..44dbf0eb 100644 --- a/libasn1fix/asn1fix.c +++ b/libasn1fix/asn1fix.c @@ -433,6 +433,7 @@ asn1f_check_constraints(arg_t *arg) { static int asn1f_check_duplicate(arg_t *arg) { arg_t tmparg = *arg; + int rvalue = 0; /* * This is a linear scan in search of a similar type. @@ -478,11 +479,12 @@ asn1f_check_duplicate(arg_t *arg) { diff_files ? ")" : ""); if(critical) return -1; + RET2RVAL(1, rvalue); } if(tmparg.mod == arg->mod) break; } - return 0; + return rvalue; } static int |