dect
/
libdect
Archived
13
0
Fork 0

mm: complete the proper procedure when authentication fails during key allocation

It should probably just use mme->current, but this needs some more thought.

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-09-03 13:38:32 +02:00
parent 54cf9fbbe4
commit 8c4fc03f20
1 changed files with 6 additions and 0 deletions

View File

@ -998,10 +998,16 @@ static void dect_mm_rcv_authentication_reject(struct dect_handle *dh,
struct dect_msg_buf *mb)
{
struct dect_mm_procedure *mp = &mme->procedure[DECT_TRANSACTION_INITIATOR];
struct dect_mm_procedure *mpr = &mme->procedure[DECT_TRANSACTION_RESPONDER];
struct dect_mm_authentication_reject_msg msg;
struct dect_mm_authenticate_param *param;
mm_debug(mme, "AUTHENTICATION-REJECT");
if (mpr->type == DECT_MMP_KEY_ALLOCATION)
mp = mpr;
else if (mp->type != DECT_MMP_AUTHENTICATE)
return;
if (dect_parse_sfmt_msg(dh, &mm_authentication_reject_msg_desc,
&msg.common, mb) < 0)
return;