Changeset 4233
- Timestamp:
- Aug 21, 2012 11:16:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_bsd.c
r4170 r4233 724 724 PJ_CHECK_STACK(); 725 725 PJ_ASSERT_RETURN(buf && len, PJ_EINVAL); 726 PJ_ASSERT_RETURN(from && fromlen, (*len=-1, PJ_EINVAL));727 726 728 727 *len = recvfrom(sock, (char*)buf, *len, flags, … … 732 731 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 733 732 else { 734 PJ_SOCKADDR_RESET_LEN(from); 733 if (from) { 734 PJ_SOCKADDR_RESET_LEN(from); 735 } 735 736 return PJ_SUCCESS; 736 737 }
Note: See TracChangeset
for help on using the changeset viewer.