changeset 1110:a731051d2e83

Fix handling of the hop-by-hop value for expired messages
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 13 May 2013 10:12:28 +0800
parents 4f33090b96bf
children 84162710428e
files libfdcore/p_sr.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libfdcore/p_sr.c	Mon May 13 10:12:10 2013 +0800
+++ b/libfdcore/p_sr.c	Mon May 13 10:12:28 2013 +0800
@@ -186,6 +186,7 @@
 		CHECK_MALLOC_DO( ed = malloc(sizeof(struct expire_data)), goto error );
 		ed->sentto = first->chain.head->o;
 		ed->request = first->req;
+		*((uint32_t *)first->chain.o) = first->prevhbh; /* Restore the hbhid */
 		fd_list_unlink(&first->chain);
 		fd_list_unlink(&first->expire);
 		free(first);
"Welcome to our mercurial repository"