Changes in uspace/srv/net/tcp/sock.c [f4a27304:02a09ed] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/sock.c
rf4a27304 r02a09ed 613 613 ipc_callid_t wcallid; 614 614 size_t length; 615 uint8_t buffer[TCP_SOCK_FRAGMENT_SIZE]; 615 616 tcp_error_t trc; 616 617 int rc; 617 618 uint8_t *buffer = calloc(TCP_SOCK_FRAGMENT_SIZE, 1);619 if (buffer == NULL) {620 async_answer_0(callid, ENOMEM);621 return;622 }623 618 624 619 log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_sock_send()"); … … 630 625 if (sock_core == NULL) { 631 626 async_answer_0(callid, ENOTSOCK); 632 goto out;627 return; 633 628 } 634 629 … … 646 641 fibril_mutex_unlock(&socket->lock); 647 642 async_answer_0(callid, EINVAL); 648 goto out;643 return; 649 644 } 650 645 … … 656 651 fibril_mutex_unlock(&socket->lock); 657 652 async_answer_0(callid, rc); 658 goto out;653 return; 659 654 } 660 655 … … 681 676 fibril_mutex_unlock(&socket->lock); 682 677 async_answer_0(callid, rc); 683 goto out;678 return; 684 679 } 685 680 } … … 690 685 IPC_GET_ARG2(answer)); 691 686 fibril_mutex_unlock(&socket->lock); 692 693 out:694 free(buffer);695 687 } 696 688
Note:
See TracChangeset
for help on using the changeset viewer.