blob: f07e7312e4e08b2d9db753f4206c4a1f8b3d5046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Index: src/auth_url.c
===================================================================
--- a/src/auth_url.c (revision 2b7cb1c641b7d9b632f93e410dc4048938f41913)
+++ b/src/auth_url.c (revision 27abfbbd688df3e3077b535997330aa06603250f)
@@ -540,7 +540,17 @@
port = config->port;
config_release_config ();
- user = util_url_escape (client->username);
- pass = util_url_escape (client->password);
ipaddr = util_url_escape (client->con->ip);
+
+ if (client->username) {
+ user = util_url_escape(client->username);
+ } else {
+ user = strdup("");
+ }
+
+ if (client->password) {
+ pass = util_url_escape(client->password);
+ } else {
+ pass = strdup("");
+ }
snprintf (post, sizeof (post),
|