Mercurial > dovecot > core-2.2
changeset 18957:1d5d4d469b2b
lib-http: url: Make sure destination url struct is cleared in http_url_copy().
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Tue, 18 Aug 2015 20:39:24 +0300 |
parents | 3e1ab97a392c |
children | 5653b61d4c73 |
files | src/lib-http/http-url.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;