diff options
author | deraadt <> | 1997-04-13 05:08:24 +0000 |
---|---|---|
committer | deraadt <> | 1997-04-13 05:08:24 +0000 |
commit | 652251f6ab94d0ac739e59f05c6c71bc66741e35 (patch) | |
tree | a5b887fbae5ba82cc744562b2999f1576201a196 /src/lib | |
parent | b539a2623fae607f3bf71b2c332462ab4335dd42 (diff) | |
download | openbsd-652251f6ab94d0ac739e59f05c6c71bc66741e35.tar.gz openbsd-652251f6ab94d0ac739e59f05c6c71bc66741e35.tar.bz2 openbsd-652251f6ab94d0ac739e59f05c6c71bc66741e35.zip |
buf oflow; bitblt
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/net/inet_pton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/inet_pton.c b/src/lib/libc/net/inet_pton.c index 8ffe81ed12..46b4b24819 100644 --- a/src/lib/libc/net/inet_pton.c +++ b/src/lib/libc/net/inet_pton.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: inet_pton.c,v 1.1 1997/03/13 19:07:33 downsj Exp $ */ | 1 | /* $OpenBSD: inet_pton.c,v 1.2 1997/04/13 05:08:24 deraadt Exp $ */ |
2 | 2 | ||
3 | /* Copyright (c) 1996 by Internet Software Consortium. | 3 | /* Copyright (c) 1996 by Internet Software Consortium. |
4 | * | 4 | * |
@@ -20,7 +20,7 @@ | |||
20 | #if 0 | 20 | #if 0 |
21 | static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; | 21 | static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; |
22 | #else | 22 | #else |
23 | static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.1 1997/03/13 19:07:33 downsj Exp $"; | 23 | static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.2 1997/04/13 05:08:24 deraadt Exp $"; |
24 | #endif | 24 | #endif |
25 | #endif /* LIBC_SCCS and not lint */ | 25 | #endif /* LIBC_SCCS and not lint */ |
26 | 26 | ||
@@ -100,12 +100,12 @@ inet_pton4(src, dst) | |||
100 | 100 | ||
101 | if (new > 255) | 101 | if (new > 255) |
102 | return (0); | 102 | return (0); |
103 | *tp = new; | ||
104 | if (! saw_digit) { | 103 | if (! saw_digit) { |
105 | if (++octets > 4) | 104 | if (++octets > 4) |
106 | return (0); | 105 | return (0); |
107 | saw_digit = 1; | 106 | saw_digit = 1; |
108 | } | 107 | } |
108 | *tp = new; | ||
109 | } else if (ch == '.' && saw_digit) { | 109 | } else if (ch == '.' && saw_digit) { |
110 | if (octets == 4) | 110 | if (octets == 4) |
111 | return (0); | 111 | return (0); |