File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -1288,25 +1288,9 @@ static int ipv6_from_asc(uint8_t v6[16], const char *in) {
1288
1288
1289
1289
// Format the result.
1290
1290
if (v6stat .zero_pos >= 0 ) {
1291
- // Due to the gcc-12 workaround parsing is broke for the IPv6 address
1292
- // `::` which would have been previously supported and working.
1293
- // This variant is checked earlier, so total here can't be anything
1294
- // other then zero if the count was 3.
1295
- // if(v6stat.zero_cnt == 3) {
1296
- // OPENSSL_memset(v6, 0, 16);
1297
- // return 1;
1298
- // }
1299
-
1300
1291
// Copy initial part
1301
1292
OPENSSL_memcpy (v6 , v6stat .tmp , v6stat .zero_pos );
1302
-
1303
1293
// Zero middle
1304
- // This condition is to suppress gcc-12 warning.
1305
- // https://github.com/aws/aws-lc/issues/487
1306
- // if (v6stat.zero_pos > v6stat.total) {
1307
- // // This should not happen.
1308
- // return 0;
1309
- // }
1310
1294
OPENSSL_memset (v6 + v6stat .zero_pos , 0 , 16 - v6stat .total );
1311
1295
// Copy final part
1312
1296
if (v6stat .total != v6stat .zero_pos ) {
You can’t perform that action at this time.
0 commit comments