Fix use-after-free in mpc / cmd_seek() Please cc me any reply as I'm not a subscriber of the list.
/Alexander diff --git a/src/command.c b/src/command.c index 02894aa..31a2c72 100644 --- a/src/command.c +++ b/src/command.c @@ -458,11 +458,11 @@ cmd_seek(gcc_unused int argc, gcc_unused char **argv, struct mpd_connection *con if (seekto > (int)mpd_status_get_total_time(status)) DIE("Seek amount would seek past the end of the song\n"); - mpd_status_free(status); - if (!mpd_run_seek_id(conn, mpd_status_get_song_id(status), seekto)) printErrorAndExit(conn); + mpd_status_free(status); + return 1; } _______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel