diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | radix.c | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -18,6 +18,9 @@ | |||
18 | - stevesk@cvs.openbsd.org 2002/04/21 16:25:06 | 18 | - stevesk@cvs.openbsd.org 2002/04/21 16:25:06 |
19 | [sshconnect1.c] | 19 | [sshconnect1.c] |
20 | spelling in error message; ok markus@ | 20 | spelling in error message; ok markus@ |
21 | - markus@cvs.openbsd.org 2002/04/22 06:15:47 | ||
22 | [radix.c] | ||
23 | fix check for overflow | ||
21 | 24 | ||
22 | 20020421 | 25 | 20020421 |
23 | - (tim) [entropy.c.] Portability fix for SCO Unix 3.2v4.x (SCO OSR 3.0). | 26 | - (tim) [entropy.c.] Portability fix for SCO Unix 3.2v4.x (SCO OSR 3.0). |
@@ -8284,4 +8287,4 @@ | |||
8284 | - Wrote replacements for strlcpy and mkdtemp | 8287 | - Wrote replacements for strlcpy and mkdtemp |
8285 | - Released 1.0pre1 | 8288 | - Released 1.0pre1 |
8286 | 8289 | ||
8287 | $Id: ChangeLog,v 1.2067 2002/04/23 10:56:02 djm Exp $ | 8290 | $Id: ChangeLog,v 1.2068 2002/04/23 11:00:33 djm Exp $ |
@@ -26,7 +26,7 @@ | |||
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | #include "uuencode.h" | 27 | #include "uuencode.h" |
28 | 28 | ||
29 | RCSID("$OpenBSD: radix.c,v 1.18 2002/04/20 09:17:19 markus Exp $"); | 29 | RCSID("$OpenBSD: radix.c,v 1.19 2002/04/22 06:15:47 markus Exp $"); |
30 | 30 | ||
31 | #ifdef AFS | 31 | #ifdef AFS |
32 | #include <krb.h> | 32 | #include <krb.h> |
@@ -76,15 +76,17 @@ creds_to_radix(CREDENTIALS *creds, u_char *buf, size_t buflen) | |||
76 | 76 | ||
77 | #define GETSTRING(b, t, tlen) \ | 77 | #define GETSTRING(b, t, tlen) \ |
78 | do { \ | 78 | do { \ |
79 | int i; \ | 79 | int i, found = 0; \ |
80 | for (i = 0; i < tlen; i++) { \ | 80 | for (i = 0; i < tlen; i++) { \ |
81 | if (buffer_len(b) == 0) \ | 81 | if (buffer_len(b) == 0) \ |
82 | goto done; \ | 82 | goto done; \ |
83 | t[i] = buffer_get_char(b); \ | 83 | t[i] = buffer_get_char(b); \ |
84 | if (t[i] == '\0') \ | 84 | if (t[i] == '\0') { \ |
85 | found = 1; \ | ||
85 | break; \ | 86 | break; \ |
87 | } \ | ||
86 | } \ | 88 | } \ |
87 | if (t[i] != '\0') \ | 89 | if (!found) \ |
88 | goto done; \ | 90 | goto done; \ |
89 | } while(0) | 91 | } while(0) |
90 | 92 | ||