|
Hi Ao Qi,
It looks good to me. Thank you for taking care about it! One minor comment on the fragment: 474 if (mask != NULL) {
475 if (parseAllowedMask(mask, isIPv4, &(_peers[_peers_cnt].netmask)) != JDWPTRANSPORT_ERROR_NONE) {
476 _peers_cnt = 0;
477 fprintf(stderr, "Error in allow option: '%s'\n", mask);
478 RETURN_ERROR(JDWPTRANSPORT_ERROR_ILLEGAL_ARGUMENT,
479 "invalid netmask in allow option");
480 }
481 // for safety update subnet to satisfy the mask
482 size_t i;
483 for (i = 0; i < sizeof(_peers[_peers_cnt].subnet); i++) {
484 _peers[_peers_cnt].subnet.s6_addr[i] &= _peers[_peers_cnt].netmask.s6_addr[i];
485 }
For better compatibility I'd suggest to move the declaration of
size_t ifrom line 482 to the begin of block after the line 474. Thanks, Serguei On 5/16/19 02:41, Daniel Fuchs wrote: Hi Ao Qi, |
- RFR: JDK-8224028: loop initial declarations int... Ao Qi
- Re: RFR: JDK-8224028: loop initial declara... Daniel Fuchs
- Re: RFR: JDK-8224028: loop initial dec... [email protected]
- Re: RFR: JDK-8224028: loop initial dec... David Holmes
- Re: RFR: JDK-8224028: loop initial... Ao Qi
- Re: RFR: JDK-8224028: loop ini... Alex Menkov
- Re: RFR: JDK-8224028: loop ini... David Holmes
- Re: RFR: JDK-8224028: loo... Martin Buchholz
- Re: RFR: JDK-8224028:... David Holmes
- Re: RFR: JDK-8224... Martin Buchholz
- Re: RFR: JDK-8224... David Holmes
