Article View: comp.sys.sun
Article #9665SLIP sliplogin.c bugfix
From: Rayan Zachariassen
Date: Thu, 15 Dec 1988 09:24
Date: Thu, 15 Dec 1988 09:24
17 lines
1059 bytes
1059 bytes
If sliplogin.c worked for you, it was purely by chance. Here is a way of
making it slightly more deterministic. Don't blame me, this isn't my code:
*** RCS/sliplogin.c,v Wed Dec 14 04:24:42 1988
--- sliplogin.c Wed Dec 14 04:36:40 1988
***************
*** 218,223 ****
--- 218,224 ----
int val;
extern struct in_addr inet_makeaddr();
+ bzero((caddr_t)saddr, sizeof *saddr);
sin->sin_family = AF_INET;
val = inet_addr(s);
if (val != -1) {
[[ This fix has been applied to the copy in the archives. --wnl ]]
Technical Details
Message-ID:
<88Dec14.045352est.38019@neat.ai.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request From: rayan@ai.toronto.edu (Rayan Zachariassen) Newsgroups: comp.sys.sun Subject: SLIP sliplogin.c bugfix Message-ID: <88Dec14.045352est.38019@neat.ai.toronto.edu> Date: 15 Dec 88 09:24:32 GMT Sender: usenet@rice.edu Organization: Rice University, Houston, Texas Lines: 16 Approved: Sun-Spots@rice.edu Original-Date: Wed, 14 Dec 88 04:53:38 EST X-Sun-Spots-Digest: Volume 7, Issue 55, message 13 of 14