diff options
author | wrstuden <wrstuden@pkgsrc.org> | 1999-02-23 22:31:37 +0000 |
---|---|---|
committer | wrstuden <wrstuden@pkgsrc.org> | 1999-02-23 22:31:37 +0000 |
commit | c6cddb4610398493c5030278238c6cc67d18e200 (patch) | |
tree | f69df9130d0e43d2091deece7fa02f89c457d745 /net/netatalk/patches | |
parent | 4d54e8c85dfaf3a606041aecad5362661ec6a72e (diff) | |
download | pkgsrc-c6cddb4610398493c5030278238c6cc67d18e200.tar.gz |
in session(), seq is incrimented before being used. Thus for the first
sequence number sent to be 1, we need to initialize to 0.
Pointed out by Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>.
Diffstat (limited to 'net/netatalk/patches')
-rw-r--r-- | net/netatalk/patches/patch-aw | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net/netatalk/patches/patch-aw b/net/netatalk/patches/patch-aw index 936ba907293..6b059cde08b 100644 --- a/net/netatalk/patches/patch-aw +++ b/net/netatalk/patches/patch-aw @@ -1,4 +1,4 @@ -$NetBSD: patch-aw,v 1.1 1999/01/01 22:08:26 garbled Exp $ +$NetBSD: patch-aw,v 1.2 1999/02/23 22:31:37 wrstuden Exp $ --- etc/papd/session.c.orig Fri Jan 1 15:05:42 1999 +++ etc/papd/session.c Fri Jan 1 15:06:01 1999 @@ -3,6 +3,7 @@ @@ -9,3 +9,12 @@ $NetBSD: patch-aw,v 1.1 1999/01/01 22:08:26 garbled Exp $ #include <sys/types.h> #include <sys/syslog.h> #include <sys/time.h> +@@ -53,7 +54,7 @@ + fd_set fds; + char cbuf[ 578 ]; + int i, cc, timeout = 0, readpending = 0; +- u_short seq = 1, rseq = 1, netseq; ++ u_short seq = 0, rseq = 1, netseq; + u_char readport; + + infile.pf_state = PF_BOT; |