diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-07-01 14:23:31 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-07-01 14:23:31 +0000 |
commit | fa9008294218db24711269a7b4461aca3a9d0bcb (patch) | |
tree | 8fbb6cc6812d4335f3bbbfd61ef49b36d9678c5a | |
parent | 65416774560fe0dffbe7f1e591bd2da6fb3f1fa6 (diff) |
Get the 'default:' case right too.
-rw-r--r-- | sbin/isakmpd/util.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/isakmpd/util.c b/sbin/isakmpd/util.c index 2e580a8223f..2e83989dc9f 100644 --- a/sbin/isakmpd/util.c +++ b/sbin/isakmpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.18 2001/07/01 05:42:05 angelos Exp $ */ +/* $OpenBSD: util.c,v 1.19 2001/07/01 14:23:30 ho Exp $ */ /* $EOM: util.c,v 1.23 2000/11/23 12:22:08 niklas Exp $ */ /* @@ -305,7 +305,6 @@ sockaddr2text (struct sockaddr *sa, char **address, int zflag) if (*address == NULL) return -1; strcpy (*address, buf); - return 0; } else switch (sa->sa_family) @@ -376,9 +375,9 @@ sockaddr2text (struct sockaddr *sa, char **address, int zflag) } break; default: - strcpy (buf, "<error>"); + strcpy (*address, "<error>"); } - + return 0; } |