浏览代码

Bug 1450: Failure during WebDAV SSPI authentication

https://winscp.net/tracker/1450

Source commit: 986f8f04fc6b898a0ec0698d64eef9c09c15c670
Martin Prikryl 9 年之前
父节点
当前提交
e25d963182
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      libs/neon/src/ne_auth.c

+ 5 - 0
libs/neon/src/ne_auth.c

@@ -1680,7 +1680,12 @@ static void auth_register(ne_session *sess, int isproxy, unsigned protomask,
             ne_fill_server_uri(sess, &uri);
         }
 
+#ifdef WINSCP
+        // bug fix
+        ahs->sspi_host = ne_strdup(uri.host);
+#else
         ahs->sspi_host = uri.host;
+#endif
 
         uri.host = NULL;