瀏覽代碼

Compare nicknames casei.

svn:r1684
Nick Mathewson 21 年之前
父節點
當前提交
2e47a0f009
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/connection_or.c

+ 1 - 1
src/or/connection_or.c

@@ -215,7 +215,7 @@ static int connection_tls_finish_handshake(connection_t *conn) {
 
   if (conn->nickname) {
     /* I initiated this connection. */
-    if (strcmp(conn->nickname, nickname)) {
+    if (strcasecmp(conn->nickname, nickname)) {
       log_fn(options.DirPort ? LOG_WARN : LOG_INFO,
              "Other side is '%s', but we tried to connect to '%s'",
              nickname, conn->nickname);