diff src/accept.c @ 411:9b93c0a3bd8c

Ensure lvals, rvals and components of address strucs are stripped.
author markus schnalke <meillo@marmaro.de>
date Wed, 29 Feb 2012 12:06:33 +0100
parents aa40710f09fe
children
line wrap: on
line diff
--- a/src/accept.c	Wed Feb 29 12:05:47 2012 +0100
+++ b/src/accept.c	Wed Feb 29 12:06:33 2012 +0100
@@ -199,8 +199,7 @@
 
 		DEBUG(5) debugf("hdr->value = '%s'\n", hdr->value);
 
-		addr = g_strdup(hdr->value);
-		g_strchomp(addr);
+		addr = g_strstrip(g_strdup(hdr->value));
 		msg->return_path = create_address_qualified(addr,
 				FALSE, msg->received_host);
 		if (msg->return_path) {