From 357555c94a71f9045834b0d5c2e5dbf8e737773c Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 24 Sep 1995 03:41:22 +0000 Subject: [PATCH] (change has no real effect, but I found the inconsistency when looking for a real problem which wasn't here...) * write_msg.c (krb5_write_message): check the real length variable, not the net version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6842 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 6 +++++- src/lib/krb5/os/write_msg.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6b551b89a..3f06ad019 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 22 15:57:33 1995 Mark Eichin + + * write_msg.c (krb5_write_message): check the real length + variable, not the net version. + Wed Sep 13 11:01:18 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: had to define away DBFLAGS for the PC. @@ -131,7 +136,6 @@ Fri Jun 30 14:44:17 EDT 1995 Paul Park (pjpark@mit.edu) DBM aname database format. * Makefile.in - Add definitions to select aname rules. - Tue Jun 27 15:48:41 EDT 1995 Paul Park (pjpark@mit.edu) * read_pwd.c(intr_routine) - Add signal name argument to signal handler to conform to prototype. diff --git a/src/lib/krb5/os/write_msg.c b/src/lib/krb5/os/write_msg.c index ec1ff01c4..368ca6086 100644 --- a/src/lib/krb5/os/write_msg.c +++ b/src/lib/krb5/os/write_msg.c @@ -41,7 +41,7 @@ krb5_write_message(context, fdp, outbuf) if (krb5_net_write(context, fd, (char *)&len, 4) < 0) { return(errno); } - if (len && (krb5_net_write(context, fd, outbuf->data, outbuf->length) < 0)) { + if (outbuf->length && (krb5_net_write(context, fd, outbuf->data, outbuf->length) < 0)) { return(errno); } return(0); -- 2.26.2