diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2001-05-02 10:30:52 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2001-05-02 10:30:52 +0000 |
commit | 78a6e9db47f2cb08fe9d3c23655a85773f68515d (patch) | |
tree | 1944a78a908e35324e1fa010dcbf8a1fb03de28d /sal/osl/unx | |
parent | 8b9af5f617d1a9eb06f839f81fb6744b0c6241c9 (diff) |
fixed socketaddr problem when using IP adresses instead of hostnames
Diffstat (limited to 'sal/osl/unx')
-rw-r--r-- | sal/osl/unx/socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c index 488887b025b4..4132f6e32c9f 100644 --- a/sal/osl/unx/socket.c +++ b/sal/osl/unx/socket.c @@ -2,9 +2,9 @@ * * $RCSfile: socket.c,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: jbu $ $Date: 2001-04-27 11:01:32 $ + * last change: $Author: jbu $ $Date: 2001-05-02 11:30:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -720,7 +720,7 @@ oslSocketAddr SAL_CALL osl_createInetBroadcastAddr ( nAddr = htonl(nAddr); } - pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, Port, nAddr ); + pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons(Port), nAddr ); return pAddr; } @@ -765,7 +765,7 @@ oslSocketAddr SAL_CALL osl_psz_createInetSocketAddr ( if(Addr != -1) { /* valid dotted addr */ - pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, Port , Addr ); + pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons(Port) , Addr ); } return pAddr; } |