Changeset 4584:3d51fa5a110d in nginx


Ignore:
Timestamp:
04/12/12 10:20:33 (8 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4585
Message:

Reduced the number of lines of code in ngx_inet_addr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/core/ngx_inet.c

    r4582 r4584  
    4545    }
    4646
    47     if (n != 3) {
    48         return INADDR_NONE;
    49     }
    50 
    51     if (octet < 256) {
     47    if (n == 3 && octet < 256) {
    5248        addr = (addr << 8) + octet;
    5349        return htonl(addr);
Note: See TracChangeset for help on using the changeset viewer.