Code

screen_utils: check for NULL password
authorMax Kellermann <max@duempel.org>
Mon, 17 Nov 2008 17:28:57 +0000 (18:28 +0100)
committerMax Kellermann <max@duempel.org>
Mon, 17 Nov 2008 17:28:57 +0000 (18:28 +0100)
commita0dc9549ee29dea1a9186204fc1c18985321752f
tree1b4e7c1429bd8bc737f780ce40cc136aa833b640
parent65804e73eaed005b0f8114e5c6f03fa59341a2bc
screen_utils: check for NULL password

Fix a NULL pointer dereference and a memory leak: check if
screen_read_password() returns NULL, and don't call
mpd_sendPasswordCommand(NULL) in this case.  Free the password
when done.
src/screen_utils.c