- Timestamp:
- Mar 26, 2012 1:45:57 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libalias/alias_db.c
r40621 r40622 825 825 } 826 826 LogFunc(("bind called for socket: %R[natsock]\n", so)); 827 828 827 pLnk->pSo = so; 828 so->so_pvLnk = pLnk; 829 829 #else 830 830 *sockfd = sock; … … 987 987 void slirpDeleteLinkSocket(void *pvLnk) 988 988 { 989 990 989 struct alias_link *lnk = (struct alias_link *)pvLnk; 990 lnk->pSo = NULL; 991 991 } 992 992 #endif /* !VBOX */ … … 1031 1031 } 1032 1032 # else 1033 if (lnk->pSo) 1033 if (lnk->pSo) 1034 1034 { 1035 1035 la->sockCount--; 1036 /* should we be more smart, or it's enough to be 1037 * narrow-minded and just do sofree here 1038 1039 1040 1036 /* should we be more smart, or it's enough to be 1037 * narrow-minded and just do sofree here 1038 */ 1039 sofree(la->pData, lnk->pSo); 1040 lnk->pSo = NULL; 1041 1041 } 1042 1042 # endif … … 1114 1114 lnk->sockfd = -1; 1115 1115 # else 1116 1116 lnk->pSo = NULL; 1117 1117 # endif 1118 1118 #endif -
trunk/src/VBox/Devices/Network/slirp/socket.c
r40621 r40622 189 189 /* libalias notification */ 190 190 if (so->so_pvLnk) 191 191 slirpDeleteLinkSocket(so->so_pvLnk); 192 192 193 193 /* check if mbuf haven't been already freed */
Note:
See TracChangeset
for help on using the changeset viewer.