diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2007-09-10 16:31:36 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2007-09-10 16:31:36 +0000 |
commit | 455ffcb316c78b76deb2cd84ab2097058f76653c (patch) | |
tree | 1cc0775e52a602023a80adc053d940d246f17f5c | |
parent | d6f25b8de5aa09994c45f3a4e186b26276bc71c2 (diff) |
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; |