[raop] Save verification key to db immediately after verification

This commit is contained in:
ejurgensen 2017-06-24 23:59:02 +02:00
parent f33b6dbfbf
commit f4e171db75

View File

@ -4227,9 +4227,12 @@ raop_cb_verification_setup_step3(struct evrtsp_request *req, void *arg)
DPRINTF(E_LOG, L_RAOP, "Verification setup stage complete, saving authorization key\n");
// Dereferencing output_device and a blocking db call... :-~
free(rs->device->auth_key);
rs->device->auth_key = strdup(authorization_key);
db_speaker_save(rs->device);
// The player considers this session failed, so we don't need it any more
raop_session_cleanup(rs);