X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_bounce.cpp;h=c17a53d2e49d84589c43be25b0b04c7c7c33e5ea;hb=edeb7dc220cc1b66ae533ee4baba40b15732a4fd;hp=acfdde1c9c188dc76f3617feac9913a01ef02a91;hpb=48d8459a8f0a3d1238e0f23e978c1e8db534ab72;p=metaproxy-moved-to-github.git diff --git a/src/filter_bounce.cpp b/src/filter_bounce.cpp index acfdde1..c17a53d 100644 --- a/src/filter_bounce.cpp +++ b/src/filter_bounce.cpp @@ -69,7 +69,8 @@ static void http_echo(mp::odr &odr, Z_GDU *zgdu, Z_GDU *zgdu_res) z_HTTP_header_set(odr, &hres->headers, "Content-Type", "text/plain"); - hres->content_buf = odr_strdup(odr, buf); + hres->content_buf = (char*) odr_malloc(odr, len); + memcpy(hres->content_buf, buf, len); hres->content_len = len; } odr_destroy(enc);