From: Ian Jackson Date: Thu, 21 Jun 2012 00:24:41 +0000 (+0100) Subject: site: transport peers: fix incorrect stride when debug output enabled X-Git-Tag: debian/0.3.0_beta1~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/a620a048db382ace2ab42cfe0f6e832de1197527?hp=a620a048db382ace2ab42cfe0f6e832de1197527 site: transport peers: fix incorrect stride when debug output enabled When there are multiple peer addresses, attempts to copy them from one table of peers addresses to another with transport_peers_copy will go wrong because the stride argument to transport_peers_debug is wrong - we take sizeof() the pointer rather than of the array element. This will typically cause a segfault if it happens, but the bug can only be triggered if LOG_PEER_ADDRS debugging is enabled. Signed-off-by: Ian Jackson ---