~britco/nginx/master

« back to all changes in this revision

Viewing changes to src/core/ngx_inet.c

Tags: upstream-0.5.33
ImportĀ upstreamĀ versionĀ 0.5.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
 
215
215
    in_cidr->mask = htonl((ngx_uint_t) (0 - (1 << (32 - m))));
216
216
 
217
 
    return NGX_OK;
 
217
    if (in_cidr->addr == (in_cidr->addr & in_cidr->mask)) {
 
218
        return NGX_OK;
 
219
    }
 
220
 
 
221
    in_cidr->addr &= in_cidr->mask;
 
222
 
 
223
    return NGX_DONE;
218
224
}
219
225
 
220
226