diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2011-05-10 16:20:50 +0200 |
---|---|---|
committer | Johan Hedberg <jh@dell.(none)> | 2011-05-15 01:47:11 +0300 |
commit | 5315250b697e0a1909745f9cadd8622c0dcf8b3e (patch) | |
tree | eeb4983c30313355006fde2790dfd6dc33ad338d /serial | |
parent | 3c07ee5578b2a0a36ac8f1fd9106340ae5d470ae (diff) | |
download | bluez-5315250b697e0a1909745f9cadd8622c0dcf8b3e.tar.gz |
Fix check for negative port number in tcp_socket_connect
Diffstat (limited to 'serial')
-rw-r--r-- | serial/proxy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/serial/proxy.c b/serial/proxy.c index de6db4153..457959c66 100644 --- a/serial/proxy.c +++ b/serial/proxy.c @@ -311,8 +311,7 @@ static inline int unix_socket_connect(const char *address) static int tcp_socket_connect(const char *address) { struct sockaddr_in addr; - int err, sk; - unsigned short int port; + int err, sk, port; memset(&addr, 0, sizeof(addr)); |