aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix/asn1fix.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-03-09 08:49:26 +0000
committerLev Walkin <vlm@lionet.info>2006-03-09 08:49:26 +0000
commit9c2285abf3b32e66e3966c7c861a8e21065cc89e (patch)
tree20f60c552a81573748bd5c3cc4edf47c519de9b9 /libasn1fix/asn1fix.c
parent9344c9fdbff13f3148e421bcc5a5775f3cede9d0 (diff)
parsing object classes more properly
Diffstat (limited to 'libasn1fix/asn1fix.c')
-rw-r--r--libasn1fix/asn1fix.c4
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