dovecot-2.2: lib-http: url: Make sure destination url struct is ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 18 18:02:25 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/1d5d4d469b2b
changeset: 18957:1d5d4d469b2b
user: Stephan Bosch <stephan at rename-it.nl>
date: Tue Aug 18 20:39:24 2015 +0300
description:
lib-http: url: Make sure destination url struct is cleared in http_url_copy().
diffstat:
src/lib-http/http-url.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 3e1ab97a392c -r 1d5d4d469b2b src/lib-http/http-url.c
--- a/src/lib-http/http-url.c Tue Aug 18 20:39:24 2015 +0300
+++ b/src/lib-http/http-url.c Tue Aug 18 20:39:24 2015 +0300
@@ -428,6 +428,7 @@
void http_url_copy_authority(pool_t pool, struct http_url *dest,
const struct http_url *src)
{
+ memset(dest, 0, sizeof(*dest));
dest->host_name = p_strdup(pool, src->host_name);
if (src->have_host_ip) {
dest->host_ip = src->host_ip;
More information about the dovecot-cvs
mailing list