mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
return in functions
This commit is contained in:
parent
dd9ccf3eb4
commit
b17e4f4786
2 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ void *receive_msg_enc(void *args) {
|
|||
printf("NETRWORK RECEIVED: %s\n", dec);
|
||||
|
||||
free(base64_dec_str);
|
||||
//handle_network_msg(dec);
|
||||
handle_network_msg(dec);
|
||||
free(dec);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -420,8 +420,6 @@ static int handle_deauth_req(struct blob_attr *msg) {
|
|||
|
||||
int handle_network_msg(char* msg)
|
||||
{
|
||||
|
||||
|
||||
printf("HANDLING NETWORK MSG!\n");
|
||||
struct blob_attr *tb[__NETWORK_MAX];
|
||||
char *method;
|
||||
|
@ -431,6 +429,8 @@ int handle_network_msg(char* msg)
|
|||
blob_buf_init(&network_buf, 0);
|
||||
blobmsg_add_json_from_string(&network_buf, msg);
|
||||
|
||||
return -1;
|
||||
|
||||
printf("TO JSON AGAIN PARSING: %s\n",blobmsg_format_json(network_buf.head, true));
|
||||
|
||||
printf("PARSING NETWORK MSG!\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue