diff options
author | 2007-09-10 16:31:35 +0000 | |
---|---|---|
committer | 2007-09-10 16:31:35 +0000 | |
commit | fd338a627784d50f486721563382077db14cb716 (patch) | |
tree | 27a0e223391ac841ab3f1476736916547e357e91 | |
parent | more M_ZERO usage. (diff) | |
download | wireguard-openbsd-fd338a627784d50f486721563382077db14cb716.tar.xz wireguard-openbsd-fd338a627784d50f486721563382077db14cb716.zip |
Make sure we don't skip the code which sends the QUIT command to the CDDB
server and validates the returned track names. Unreachable code spotted
by lint.
OK krw@, deraadt@, espie@
-rw-r--r-- | usr.bin/cdio/cddb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/cddb.c b/usr.bin/cdio/cddb.c index 129dae4b3d8..4fd7c6e3151 100644 --- a/usr.bin/cdio/cddb.c +++ b/usr.bin/cdio/cddb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cddb.c,v 1.13 2007/09/02 15:19:31 deraadt Exp $ */ +/* $OpenBSD: cddb.c,v 1.14 2007/09/10 16:31:35 cloder Exp $ */ /* * Copyright (c) 2002 Marc Espie. * @@ -345,7 +345,7 @@ cddb(const char *host_port, int n, struct cd_toc_entry *e, char *arg) if (!line) goto end2; if (strcmp(line, ".") == 0) - goto end; + break; if (strncmp(line, "TTITLE", 6) != 0) continue; line += 6; |