From 3a30e186c4ea4bf1fe0b732e06c1a6c12e20dfb3 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 22 Jan 2013 11:11:26 -0500 Subject: [PATCH] dont use RE_UDP_ macros for indexes into the fallback RE --- daemon/control_udp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/control_udp.c b/daemon/control_udp.c index 6a20112..06de7ca 100644 --- a/daemon/control_udp.c +++ b/daemon/control_udp.c @@ -46,10 +46,10 @@ static void control_udp_incoming(struct obj *obj, char *buf, int len, struct soc iov[0].iov_base = (void *) out[RE_UDP_COOKIE]; iov[0].iov_len = strlen(out[RE_UDP_COOKIE]); if (out[RE_UDP_UL_CMD] && (chrtoupper(out[RE_UDP_UL_CMD][0]) == 'U' || chrtoupper(out[RE_UDP_UL_CMD][0]) == 'L')) { - iov[1].iov_base = (void *) out[RE_UDP_UL_CALLID]; - iov[1].iov_len = strlen(out[RE_UDP_UL_CALLID]); - iov[2].iov_base = (void *) out[RE_UDP_UL_FLAGS]; - iov[2].iov_len = strlen(out[RE_UDP_UL_FLAGS]); + iov[1].iov_base = (void *) out[4]; + iov[1].iov_len = strlen(out[4]); + iov[2].iov_base = (void *) out[3]; + iov[2].iov_len = strlen(out[3]); iov[3].iov_base = "\n"; iov[3].iov_len = 1; mh.msg_iovlen = 4;