Mercurial > hg > freeDiameter
diff libfdcore/p_sr.c @ 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 | 1af09cc156d6 |
children | f40de74bd1c7 |
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 */