summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-12-25 01:11:55 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-12-25 01:11:55 +0000
commitd6fd7f016431ef3f980c1cb722f9f571a7af0e08 (patch)
tree82d48800a03bddafe0c8a3373632d6179f43f156 /lib
parentc28cb1398dc8179eb76377489d2217a36c5fa163 (diff)
change ZNotice_t around a bit, libzephyr4
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.in2
-rw-r--r--lib/ZParseNot.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 64e3692..1e80f84 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -47,7 +47,7 @@ OBJS = zephyr_err.lo ZAsyncLocate.lo ZCkAuth.lo ZCkIfNot.lo ZClosePort.lo \
all: libzephyr.la
libzephyr.la: ${OBJS}
- ${LIBTOOL} --mode=link ${CC} -rpath ${libdir} -version-info 3:0:0 \
+ ${LIBTOOL} --mode=link ${CC} -rpath ${libdir} -version-info 4:0:0 \
${LDFLAGS} -o $@ ${OBJS} ${LIBS}
zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et
diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c
index 72a7587..48fc29e 100644
--- a/lib/ZParseNot.c
+++ b/lib/ZParseNot.c
@@ -117,6 +117,9 @@ ZParseNotice(char *buffer,
BAD_PACKET;
notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec);
notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec);
+ memset(&notice->z_sender_sockaddr, 0, sizeof notice->z_sender_sockaddr);
+ notice->z_sender_sockaddr.ip4.sin_family = AF_INET;
+ notice->z_sender_sockaddr.ip4.sin_addr = notice->z_uid.zuid_addr;
numfields--;
ptr = next_field(ptr, end);
}