diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 14:44:55 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-21 15:17:22 +0200 |
commit | 3018f3698b1463d4577ea8b412f079f4381b7605 (patch) | |
tree | a4bda8e5964715ab6806cddff75da97f15395108 /print-radius.c | |
parent | e4ecc39f4ebb05aa2fb8293aaa71ffbe0a340ff1 (diff) | |
download | tcpdump-4.99.tar.gz |
Put "}" at beginning of line with "else" to keep a consistent styletcpdump-4.99
(backported from commit 113ed15b7ecae4a3523454344f9b3438ea97fdc7)
[skip ci]
Diffstat (limited to 'print-radius.c')
-rw-r--r-- | print-radius.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/print-radius.c b/print-radius.c index a8a3ddda..9d5ee3c3 100644 --- a/print-radius.c +++ b/print-radius.c @@ -916,8 +916,7 @@ print_attr_num(netdissect_options *ndo, ND_PRINT("Tag[%u] ", GET_U_1(data)); data++; data_value = GET_BE_U_3(data); - } - else { + } else { data_value = GET_BE_U_4(data); } if ( data_value <= (uint32_t)(attr_type[attr_code].siz_subtypes - 1 + @@ -926,8 +925,7 @@ print_attr_num(netdissect_options *ndo, ND_PRINT("%s", table[data_value]); else ND_PRINT("#%u", data_value); - } - else { + } else { switch(attr_code) /* Be aware of special cases... */ { case FRM_IPX: @@ -1449,8 +1447,7 @@ radius_print(netdissect_options *ndo, GET_U_1(rad->id), len); return; - } - else { + } else { ND_PRINT("RADIUS, length: %u\n\t%s (%u), id: 0x%02x, Authenticator: ", len, tok2str(radius_command_values,"Unknown Command",GET_U_1(rad->code)), |