Free expr of regex exec error Closes #1207
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Sep 2015 12:41:51 +0000 (08:41 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Sep 2015 12:42:29 +0000 (08:42 -0400)
src/main/pair.c

index 4ec8dc6..245b508 100644 (file)
@@ -114,7 +114,7 @@ int radius_compare_vps(UNUSED REQUEST *request, VALUE_PAIR *check, VALUE_PAIR *v
                if (slen < 0) {
                        RERROR("%s", fr_strerror());
 
-                       return -2;
+                       goto regex_error;
                }
 
                if (check->op == T_OP_REG_EQ) {