[nginx] Resolver: style.

Ruslan Ermilov ru at nginx.com
Wed May 23 09:03:02 UTC 2018


details:   http://hg.nginx.org/nginx/rev/e15bf978447e
branches:  
changeset: 7275:e15bf978447e
user:      Ruslan Ermilov <ru at nginx.com>
date:      Wed May 23 10:41:29 2018 +0300
description:
Resolver: style.

diffstat:

 src/core/ngx_resolver.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 66aa2c1e82e6 -r e15bf978447e src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c	Mon May 21 23:11:27 2018 +0300
+++ b/src/core/ngx_resolver.c	Wed May 23 10:41:29 2018 +0300
@@ -1299,7 +1299,7 @@ ngx_resolver_send_udp_query(ngx_resolver
 
     n = ngx_send(rec->udp, query, qlen);
 
-    if (n == -1) {
+    if (n == NGX_ERROR) {
         return NGX_ERROR;
     }
 
@@ -4546,7 +4546,7 @@ ngx_tcp_connect(ngx_resolver_connection_
                 level = NGX_LOG_CRIT;
             }
 
-            ngx_log_error(level, c->log, err, "connect() to %V failed",
+            ngx_log_error(level, &rec->log, err, "connect() to %V failed",
                           &rec->server);
 
             ngx_close_connection(c);


More information about the nginx-devel mailing list