changeset 1153:7a7ec1ad0c44

Another missing restore of the hop-by-hop ID upon failover situation
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 23 May 2013 16:11:35 +0200
parents 7284e41faa46
children 0b95a3afbfc3
files libfdcore/p_sr.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libfdcore/p_sr.c	Wed May 22 15:40:41 2013 +0200
+++ b/libfdcore/p_sr.c	Thu May 23 16:11:35 2013 +0200
@@ -320,6 +320,9 @@
 			if (hdr)
 				hdr->msg_flags |= CMD_FLAG_RETRANSMIT;
 			
+			/* Restore the original hop-by-hop id of the request */
+			*((uint32_t *)sr->chain.o) = sr->prevhbh;
+			
 			fd_hook_call(HOOK_MESSAGE_FAILOVER, sr->req, (struct fd_peer *)srlist->srs.o, NULL, fd_msg_pmdl_get(sr->req));
 			
 			/* Requeue for sending to another peer */
"Welcome to our mercurial repository"