File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1006,22 +1006,24 @@ rfc1048_print(netdissect_options *ndo,
1006
1006
* URI: URI of the SZTP bootstrap server.
1007
1007
*/
1008
1008
while (len >= 2 ) {
1009
- suboptlen = GET_BE_U_2 (bp );
1009
+ uint16_t suboptlen2 ;
1010
+
1011
+ suboptlen2 = GET_BE_U_2 (bp );
1010
1012
bp += 2 ;
1011
1013
len -= 2 ;
1012
1014
ND_PRINT ("\n\t " );
1013
- ND_PRINT ("length %u: " , suboptlen );
1014
- if (len < suboptlen ) {
1015
+ ND_PRINT ("length %u: " , suboptlen2 );
1016
+ if (len < suboptlen2 ) {
1015
1017
ND_PRINT ("length goes past end of option" );
1016
1018
bp += len ;
1017
1019
len = 0 ;
1018
1020
break ;
1019
1021
}
1020
1022
ND_PRINT ("\"" );
1021
- nd_printjn (ndo , bp , suboptlen );
1023
+ nd_printjn (ndo , bp , suboptlen2 );
1022
1024
ND_PRINT ("\"" );
1023
- len -= suboptlen ;
1024
- bp += suboptlen ;
1025
+ len -= suboptlen2 ;
1026
+ bp += suboptlen2 ;
1025
1027
}
1026
1028
if (len != 0 ) {
1027
1029
ND_PRINT ("[ERROR: length < 2 bytes]" );
You can’t perform that action at this time.
0 commit comments