Skip to content

Commit de3c4c2

Browse files
czp182alandekok
authored andcommitted
return code (-1) when invalid data type
(value.c: fr_value_box_ipaddr_from_network returns 0 instead of -1 for invalid type 302)
1 parent 1f0ccd3 commit de3c4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/util/value.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ ssize_t fr_value_box_ipaddr_from_network(fr_value_box_t *dst, fr_type_t type, fr
23372337
default:
23382338
fr_strerror_printf("Invalid data type '%s' passed to IP address decode function",
23392339
fr_type_to_str(type));
2340-
return 0;
2340+
return -1;
23412341
}
23422342

23432343
/*

0 commit comments

Comments
 (0)