Code

libmpdclient: check connection->sock >= 0
authorMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 17:48:39 +0000 (19:48 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 19:51:01 +0000 (21:51 +0200)
commitbefdf6d46a30c7d0d1befe8bf127b8229f3ceeca
tree0be9fe9fd1b7b928c9b67124ba9a2ecafa136e24
parent61053ab09a52c4a0ca36ed4e7eb01cc8a26463d9
libmpdclient: check connection->sock >= 0

mpd_wait() must not be called when the socket is dead; add an
assertion there.  In mpd_recv(), add a run-time check.
src/libmpdclient.c