aboutsummaryrefslogtreecommitdiff
path: root/dpi/downloads.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/downloads.cc')
-rw-r--r--dpi/downloads.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index d92f6e90..619a6760 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -899,7 +899,7 @@ static void read_req_cb(int req_fd, void *)
close(new_socket);
_MSG("Received tag={%s}\n", tag->str);
- if ((cmd = a_Dpip_get_attr(tag->str, (size_t)tag->len, "cmd")) == NULL) {
+ if ((cmd = a_Dpip_get_attr(tag->str, "cmd")) == NULL) {
MSG("Failed to parse 'cmd' in {%s}\n", tag->str);
goto end;
}
@@ -911,11 +911,11 @@ static void read_req_cb(int req_fd, void *)
MSG("unknown command: '%s'. Aborting.\n", cmd);
goto end;
}
- if (!(url = a_Dpip_get_attr(tag->str,(size_t)tag->len, "url"))){
+ if (!(url = a_Dpip_get_attr(tag->str, "url"))){
MSG("Failed to parse 'url' in {%s}\n", tag->str);
goto end;
}
- if (!(dl_dest = a_Dpip_get_attr(tag->str,(size_t)tag->len,"destination"))){
+ if (!(dl_dest = a_Dpip_get_attr(tag->str, "destination"))){
MSG("Failed to parse 'destination' in {%s}\n", tag->str);
goto end;
}