[SECNET PATCH 08/14] udp: Use commcommon->why_unwanted
Ian Jackson
ijackson at chiark.greenend.org.uk
Sat Sep 21 17:07:53 BST 2019
This is the one call site of comm_notify. (If we had had any comm
that wasn't based on udp.c, that would have needed updating too.)
No overall functional change: nothing ever sets this yet, so we always
use the default message.
Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
---
udp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/udp.c b/udp.c
index b9a3860..d1ada01 100644
--- a/udp.c
+++ b/udp.c
@@ -186,7 +186,9 @@ static void udp_socks_afterpoll(void *state, struct pollfd *fds, int nfds)
/* Manufacture and send NAK packet */
source=get_uint32(cc->rbuf->start); /* Us */
dest=get_uint32(cc->rbuf->start+4); /* Them */
- send_nak(&ca,source,dest,msgtype,cc->rbuf,"unwanted");
+ send_nak(&ca,source,dest,msgtype,cc->rbuf,
+ priomsg_getmessage(&cc->why_unwanted,
+ "unwanted"));
}
BUF_FREE(cc->rbuf);
}
--
2.11.0
More information about the sgo-software-discuss
mailing list