summaryrefslogtreecommitdiff
path: root/lib/ZSendPkt.c
diff options
context:
space:
mode:
authorGravatar Robert S. French <rfrench@mit.edu>1987-07-05 22:09:03 +0000
committerGravatar Robert S. French <rfrench@mit.edu>1987-07-05 22:09:03 +0000
commit6d052aeba968f16100de9e59add743abcfb06094 (patch)
tree368c868683b79102cca00e89abbe29987573e639 /lib/ZSendPkt.c
parent63e063c0681783c90e604aa788dc4e9e52f0719b (diff)
safety
Diffstat (limited to 'lib/ZSendPkt.c')
-rw-r--r--lib/ZSendPkt.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/ZSendPkt.c b/lib/ZSendPkt.c
index eca41de..f1d95a1 100644
--- a/lib/ZSendPkt.c
+++ b/lib/ZSendPkt.c
@@ -24,7 +24,7 @@ Code_t ZSendPacket(packet,len)
Code_t retval;
struct sockaddr_in dest;
struct timeval tv;
- int auth,i;
+ int i;
fd_set t1,t2,t3;
ZPacket_t ackpack;
ZNotice_t notice;
@@ -36,8 +36,9 @@ Code_t ZSendPacket(packet,len)
if ((retval = ZOpenPort((u_short *)0)) != ZERR_NONE)
return (retval);
- if ((retval = ZParseNotice(packet,len,&notice,(int *)0,
- (struct sockaddr_in *)0)) != ZERR_NONE)
+ if ((retval = Z_InternalParseNotice(packet,len,&notice,(int *)0,
+ (struct sockaddr_in *)0),(int (*)())0)
+ != ZERR_NONE)
return (retval);
dest = ZGetDestAddr();
@@ -56,9 +57,9 @@ Code_t ZSendPacket(packet,len)
for (i=0;i<HM_TIMEOUT*2;i++) {
if (select(0,&t1,&t2,&t3,&tv) < 0)
return (errno);
- retval = ZCheckIfNotice(ackpack,sizeof ackpack,&notice,
- &auth,ZCompareUIDPred,
- (char *)&notice.z_uid);
+ retval = Z_NoAuthCheckIfNotice(ackpack,sizeof ackpack,&notice,
+ ZCompareUIDPred,
+ (char *)&notice.z_uid);
if (retval == ZERR_NONE)
return (ZERR_NONE);
if (retval != ZERR_NONOTICE)