[Fedora-directory-commits] ldapserver/ldap/servers/slapd/tools/ldclt ldapfct.c, 1.4, 1.5
Richard Allen Megginson (rmeggins)
fedora-directory-commits at redhat.com
Fri Sep 7 19:49:54 UTC 2007
Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/ldclt
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17132/ldapserver/ldap/servers/slapd/tools/ldclt
Modified Files:
ldapfct.c
Log Message:
Resolves: bug 244475
Bug Description: crash at startup with new ldap sdk on 64-bit platform
Reviewed by: nkinder (Thanks!)
Fix Description: Use LBER_SOCKET as the socket type instead of int. There was also a place in ldclt where we were doing the same thing.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
Index: ldapfct.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/ldclt/ldapfct.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ldapfct.c 5 Jul 2007 23:53:41 -0000 1.4
+++ ldapfct.c 7 Sep 2007 19:49:51 -0000 1.5
@@ -586,7 +586,7 @@
thread_context *tttctx)
{
int ret; /* Return value */
- int fd; /* LDAP cnx's fd */
+ LBER_SOCKET fd; /* LDAP cnx's fd */
int v2v3; /* LDAP version used */
/*
@@ -623,9 +623,9 @@
}
#endif
#ifdef TRACE_FD_GET_OPTION_BUG
- printf ("ldclt[%d]: T%03d: fd=%d\n", mctx.pid, tttctx->thrdNum, fd);
+ printf ("ldclt[%d]: T%03d: fd=%d\n", mctx.pid, tttctx->thrdNum, (int)fd);
#endif
- if (close (fd) < 0)
+ if (close ((int)fd) < 0)
{
perror ("ldctx");
printf ("ldclt[%d]: T%03d: cannot close(fd=%d), error=%d (%s)\n",
More information about the Fedora-directory-commits
mailing list