Changeset 7039:a39bc74873fa in nginx


Ignore:
Timestamp:
06/19/17 11:25:42 (2 months ago)
Author:
Bart Warmerdam <bartw@…>
Branch:
default
Message:

Resolver: fixed allocation error handling while resolving SRV.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/core/ngx_resolver.c

    r6922 r7039  
    444444        name.data = ngx_resolver_alloc(r, name.len);
    445445        if (name.data == NULL) {
    446             return NGX_ERROR;
     446            goto failed;
    447447        }
    448448
     
    481481        ngx_resolver_free(r, ctx->event);
    482482    }
     483
     484failed:
    483485
    484486    ngx_resolver_free(r, ctx);
Note: See TracChangeset for help on using the changeset viewer.