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