mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
Fix typo when comparing local sock name
This commit is contained in:
parent
50c6a95a62
commit
60b9c90fad
1 changed files with 2 additions and 2 deletions
|
|
@ -590,14 +590,14 @@ pblock_get( Slapi_PBlock *pb, int param, void **value )
|
|||
break;
|
||||
case SLAPI_CONN_SERVERIP:
|
||||
PBLOCK_ASSERT_CONN( pb );
|
||||
if ( strncmp( pb->pb_conn->c_peer_name.bv_val, "IP=", 3 ) == 0 )
|
||||
if ( strncmp( pb->pb_conn->c_sock_name.bv_val, "IP=", 3 ) == 0 )
|
||||
*((char **)value) = &pb->pb_conn->c_sock_name.bv_val[3];
|
||||
else
|
||||
*value = NULL;
|
||||
break;
|
||||
case SLAPI_X_CONN_SERVERPATH:
|
||||
PBLOCK_ASSERT_CONN( pb );
|
||||
if ( strncmp( pb->pb_conn->c_peer_name.bv_val, "PATH=", 3 ) == 0 )
|
||||
if ( strncmp( pb->pb_conn->c_sock_name.bv_val, "PATH=", 3 ) == 0 )
|
||||
*((char **)value) = &pb->pb_conn->c_sock_name.bv_val[5];
|
||||
else
|
||||
*value = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue