From f4e171db753b2b64d4e36cb1b89f4a8a0d74d671 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 24 Jun 2017 23:59:02 +0200 Subject: [PATCH] [raop] Save verification key to db immediately after verification --- src/outputs/raop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/outputs/raop.c b/src/outputs/raop.c index 317cacd1..23480965 100644 --- a/src/outputs/raop.c +++ b/src/outputs/raop.c @@ -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);