Changes in uspace/srv/net/udp/sock.c [02a09ed:f4a27304] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/sock.c
r02a09ed rf4a27304 265 265 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_sock_send()"); 266 266 267 uint8_t *buffer = calloc(UDP_FRAGMENT_SIZE, 1); 268 if (buffer == NULL) { 269 async_answer_0(callid, ENOMEM); 270 return; 271 } 272 267 273 struct sockaddr_in6 *addr6 = NULL; 268 274 struct sockaddr_in *addr; … … 276 282 if (rc != EOK) { 277 283 async_answer_0(callid, rc); 278 return;284 goto out; 279 285 } 280 286 … … 357 363 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_sock_sendto: Failed to " 358 364 "determine local address."); 359 return;365 goto out; 360 366 } 361 367 … … 379 385 length = UDP_FRAGMENT_SIZE; 380 386 381 uint8_t buffer[UDP_FRAGMENT_SIZE];382 387 int rc = async_data_write_finalize(wcallid, buffer, length); 383 388 if (rc != EOK) { … … 425 430 if (addr6 != NULL) 426 431 free(addr6); 432 433 free(buffer); 427 434 } 428 435
Note:
See TracChangeset
for help on using the changeset viewer.