Skip to content

Commit

Permalink
Fix duplicate case statements
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 8, 2017
1 parent b24cf15 commit 6255979
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/util/value.c
Expand Up @@ -2391,7 +2391,7 @@ int value_box_from_str(TALLOC_CTX *ctx, value_box_t *dst,
/*
* Dealt with below
*/
case PW_TYPE_FIXED_SIZE:
default:
break;

case PW_TYPE_STRUCTURAL_EXCEPT_VSA:
Expand All @@ -2417,6 +2417,13 @@ int value_box_from_str(TALLOC_CTX *ctx, value_box_t *dst,
}

switch (*dst_type) {
case PW_TYPE_IPV4_ADDR:
case PW_TYPE_IPV4_PREFIX:
case PW_TYPE_IPV6_ADDR:
case PW_TYPE_IPV6_PREFIX:
break;


case PW_TYPE_BYTE:
{
char *p;
Expand Down

0 comments on commit 6255979

Please sign in to comment.