summaryrefslogtreecommitdiff
path: root/uclient.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-25 10:14:57 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-25 10:14:57 +0100
commit8bbe2130890db78856bb5731fa3e16a71d549bfe (patch)
tree097ded6e3d1ee32e07653e8e4e572d7611ef93be /uclient.c
parent7e7fe908839199cb28613d1f57eaeecf7d735bd3 (diff)
downloaduclient-8bbe2130890db78856bb5731fa3e16a71d549bfe.tar.gz
fix prefix id passing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.c')
-rw-r--r--uclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient.c b/uclient.c
index f5e9c51..4c85e80 100644
--- a/uclient.c
+++ b/uclient.c
@@ -54,6 +54,7 @@ uclient_get_url(const char *url_str, const char *auth_str)
url->backend = backend;
url->location = strcpy(uri_buf, location);
+ url->prefix = prefix - backend->prefix;
url->host = strncpy(host_buf, url_str, host_len);