mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Handle LBER_SB_OPT_[GS]ET_FD arg as ber_socket_t like elsewhere, not as int.
This commit is contained in:
parent
a286d07109
commit
5c5a834db8
1 changed files with 2 additions and 2 deletions
|
|
@ -104,13 +104,13 @@ ber_sockbuf_ctrl( Sockbuf *sb, int opt, void *arg )
|
|||
|
||||
case LBER_SB_OPT_GET_FD:
|
||||
if ( arg != NULL ) {
|
||||
*((int *)arg) = sb->sb_fd;
|
||||
*((ber_socket_t *)arg) = sb->sb_fd;
|
||||
}
|
||||
ret = ( sb->sb_fd == AC_SOCKET_INVALID ? -1 : 1);
|
||||
break;
|
||||
|
||||
case LBER_SB_OPT_SET_FD:
|
||||
sb->sb_fd = *((int *)arg);
|
||||
sb->sb_fd = *((ber_socket_t *)arg);
|
||||
ret = 1;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue