0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 23:10:54 +01:00

authd/provider: add notices in comments to certain functions not to use auth after calling

This commit is contained in:
Elizabeth Myers 2016-03-26 23:16:53 -05:00
parent e43e61f7a7
commit 420cfb677c

View file

@ -142,7 +142,7 @@ void cancel_providers(struct auth_client *auth)
rb_free(auth);
}
/* Provider is done */
/* Provider is done - WARNING: do not use auth instance after calling! */
void provider_done(struct auth_client *auth, provider_t id)
{
rb_dlink_node *ptr;
@ -169,7 +169,7 @@ void provider_done(struct auth_client *auth, provider_t id)
}
}
/* Reject a client */
/* Reject a client - WARNING: do not use auth instance after calling! */
void reject_client(struct auth_client *auth, provider_t id, const char *reason)
{
char reject;
@ -200,7 +200,7 @@ void reject_client(struct auth_client *auth, provider_t id, const char *reason)
cancel_providers(auth);
}
/* Accept a client, cancel outstanding providers if any */
/* Accept a client, cancel outstanding providers if any - WARNING: do nto use auth instance after calling! */
void accept_client(struct auth_client *auth, provider_t id)
{
uint32_t cid = auth->cid;