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:
parent
e43e61f7a7
commit
420cfb677c
1 changed files with 3 additions and 3 deletions
|
@ -142,7 +142,7 @@ void cancel_providers(struct auth_client *auth)
|
||||||
rb_free(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)
|
void provider_done(struct auth_client *auth, provider_t id)
|
||||||
{
|
{
|
||||||
rb_dlink_node *ptr;
|
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)
|
void reject_client(struct auth_client *auth, provider_t id, const char *reason)
|
||||||
{
|
{
|
||||||
char reject;
|
char reject;
|
||||||
|
@ -200,7 +200,7 @@ void reject_client(struct auth_client *auth, provider_t id, const char *reason)
|
||||||
cancel_providers(auth);
|
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)
|
void accept_client(struct auth_client *auth, provider_t id)
|
||||||
{
|
{
|
||||||
uint32_t cid = auth->cid;
|
uint32_t cid = auth->cid;
|
||||||
|
|
Loading…
Reference in a new issue