diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2013-10-10 11:18:29 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2013-10-10 11:18:29 +0000 |
commit | d87ef85d758d7c489738c015853c4138c715a44b (patch) | |
tree | 1d300daa96252b4fda834af55b56109675d030e2 /src/VBox/NetworkServices/NAT/portfwd.c | |
parent | 89576ecdd4e2bfa8a56ba799404bdb0975180cac (diff) | |
download | VirtualBox-svn-d87ef85d758d7c489738c015853c4138c715a44b.tar.gz |
portfwd.c: G/c materializing WSAGetLastError(), for debugging needs.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@49023 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/NetworkServices/NAT/portfwd.c')
-rw-r--r-- | src/VBox/NetworkServices/NAT/portfwd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/VBox/NetworkServices/NAT/portfwd.c b/src/VBox/NetworkServices/NAT/portfwd.c index b6c26aad671..0c37aa7320f 100644 --- a/src/VBox/NetworkServices/NAT/portfwd.c +++ b/src/VBox/NetworkServices/NAT/portfwd.c @@ -227,7 +227,6 @@ fwspec_set(struct fwspec *fwspec, int sdom, int stype, status = WSAStringToAddressA((char *)src_addr_str, saf, NULL, &fwspec->src.sa, &socklen); if (status == SOCKET_ERROR) { - int error = WSAGetLastError(); return -1; } @@ -240,7 +239,6 @@ fwspec_set(struct fwspec *fwspec, int sdom, int stype, status = WSAStringToAddressA((char *)dst_addr_str, saf, NULL, &fwspec->dst.sa, &socklen); if (status == SOCKET_ERROR) { - int error = WSAGetLastError(); return -1; } if (fwspec->dst.sa.sa_family != saf) { |