diff options
author | Max Kellermann <max@duempel.org> | 2008-11-17 18:28:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-17 18:28:57 +0100 |
commit | a0dc9549ee29dea1a9186204fc1c18985321752f (patch) | |
tree | 1b4e7c1429bd8bc737f780ce40cc136aa833b640 /src/defaults.h | |
parent | 65804e73eaed005b0f8114e5c6f03fa59341a2bc (diff) | |
download | mpd-a0dc9549ee29dea1a9186204fc1c18985321752f.tar.gz mpd-a0dc9549ee29dea1a9186204fc1c18985321752f.tar.xz mpd-a0dc9549ee29dea1a9186204fc1c18985321752f.zip |
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.
Diffstat (limited to 'src/defaults.h')
0 files changed, 0 insertions, 0 deletions