summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-04-06 12:22:05 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-04-06 12:22:05 +0000
commit48c4840cbdf689bf1889dbf5d33afea118813b5a (patch)
tree0fec2bd86c8f8c4ec7cc71e6c01914157f490a3e /src
parentffd9b03b88c1593840a4f05d93d4f764b48a46f2 (diff)
parentb521232a103bc17d826d35f00f956bbbaa05b11d (diff)
downloadouroboros-48c4840cbdf689bf1889dbf5d33afea118813b5a.tar.gz
ouroboros-48c4840cbdf689bf1889dbf5d33afea118813b5a.zip
Merged in sandervrijders/ouroboros/be-mgmt-eth (pull request #466)
ipcpd: shim-eth-llc: Avoid handling mgmt frame under lock
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/shim-eth-llc/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c
index 34a25ee2..1b6e02c2 100644
--- a/src/ipcpd/shim-eth-llc/main.c
+++ b/src/ipcpd/shim-eth-llc/main.c
@@ -532,12 +532,11 @@ static void * eth_llc_ipcp_mgmt_handler(void * o)
continue;
}
- eth_llc_ipcp_mgmt_frame(frame->buf, frame->len, frame->r_addr);
-
list_del(&frame->next);
- free(frame);
-
pthread_mutex_unlock(&eth_llc_data.mgmt_lock);
+
+ eth_llc_ipcp_mgmt_frame(frame->buf, frame->len, frame->r_addr);
+ free(frame);
}
}