re-use _auth_success() instead of copying ...

... and forgetting to 1. clear the password cache and 2. print a message
of what exactly happened ...

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2022-08-05 12:36:31 +02:00
parent 6881a2e770
commit 54b92c0255

View File

@@ -1239,10 +1239,8 @@ static int _handle_sm(xmpp_conn_t *const conn,
}
strophe_free(conn->ctx, queue_element_free(conn->ctx, e));
}
conn->authenticated = 1;
/* call connection handler */
conn->conn_handler(conn, XMPP_CONN_CONNECT, 0, NULL, conn->userdata);
strophe_debug(conn->ctx, "xmpp", "Session resumed successfully.");
_auth_success(conn);
} else if (strcmp(name, "failed") == 0) {
name = NULL;