]> git.sur5r.net Git - openldap/commit
Check if inet_addr() returns 0xffffffff as well as -1.
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 12 Nov 1998 02:24:43 +0000 (02:24 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 12 Nov 1998 02:24:43 +0000 (02:24 +0000)
commitce5dcbc5229e16f1c020d5989733e01657b5d0d2
tree5a29dd5a2940e4f2fc4add127154c12d61e438db
parent523fd2c891cfdbd318642b20a105adb4b2f9149c
Check if inet_addr() returns 0xffffffff as well as -1.
It returns (int)0xffffffff on OSF1 which has 64-bit long, so
`unsigned long address; ... if((address = inet_addr(str)) == -1)' fails.
libraries/libldap/cldap.c
libraries/libldap/os-ip.c