uniform checking

diff --git a/libasn1compiler/asn1c_constraint.c b/libasn1compiler/asn1c_constraint.c
index 4550c52..a5d5ab2 100644
--- a/libasn1compiler/asn1c_constraint.c
+++ b/libasn1compiler/asn1c_constraint.c
@@ -172,10 +172,9 @@
 		INDENT(+1);
 		switch(etype) {
 		case ASN_CONSTR_SEQUENCE_OF:
-			OUT("/* SEQUENCE validation code is the same as SET */\n");
 		case ASN_CONSTR_SET_OF:
 			OUT("/* Perform validation of the inner elements */\n");
-			OUT("return SET_OF_constraint(td, sptr, app_errlog, app_key);\n");
+			OUT("return td->check_constraints(td, sptr, app_errlog, app_key);\n");
 			break;
 		default:
 			OUT("/* Constraint check succeeded */\n");