]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
value: missed return
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 24 May 2020 16:52:58 +0000 (11:52 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 24 May 2020 16:52:58 +0000 (11:52 -0500)
src/lib/util/value.c

index b9c9cb66585978605b67452256b7852ed3a45585..86873310f5dfd7efbbf51e846c4698a7bb7a5eaf 100644 (file)
@@ -1857,7 +1857,7 @@ static inline int fr_value_box_cast_to_ipv4addr(TALLOC_CTX *ctx, fr_value_box_t
        case FR_TYPE_STRING:
                if (fr_value_box_from_str(ctx, dst, &dst_type, dst_enumv,
                                          src->vb_strvalue, src->datum.length, '\0', src->tainted) < 0) return -1;
-               break;
+               return 0;
 
        default:
                break;
@@ -1966,7 +1966,7 @@ static inline int fr_value_box_cast_to_ipv4prefix(TALLOC_CTX *ctx, fr_value_box_
        case FR_TYPE_STRING:
                if (fr_value_box_from_str(ctx, dst, &dst_type, dst_enumv,
                                          src->vb_strvalue, src->datum.length, '\0', src->tainted) < 0) return -1;
-               break;
+               return 0;
 
        default:
                break;
@@ -2078,7 +2078,7 @@ static inline int fr_value_box_cast_to_ipv6addr(TALLOC_CTX *ctx, fr_value_box_t
        case FR_TYPE_STRING:
                if (fr_value_box_from_str(ctx, dst, &dst_type, dst_enumv,
                                          src->vb_strvalue, src->datum.length, '\0', src->tainted) < 0) return -1;
-               break;
+               return 0;
 
        default:
                break;
@@ -2184,7 +2184,7 @@ static inline int fr_value_box_cast_to_ipv6prefix(TALLOC_CTX *ctx, fr_value_box_
        case FR_TYPE_STRING:
                if (fr_value_box_from_str(ctx, dst, &dst_type, dst_enumv,
                                          src->vb_strvalue, src->datum.length, '\0', src->tainted) < 0) return -1;
-               break;
+               return 0;
 
        default:
                break;