mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix build if LDAP_X_TXN is undefined
This commit is contained in:
parent
ffee887d71
commit
486721d531
@ -1210,10 +1210,12 @@ static int parsePreRead (
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
#ifdef LDAP_X_TXN
|
||||
if ( op->o_txnSpec ) { /* temporary limitation */
|
||||
rs->sr_text = "cannot perform pre-read in transaction";
|
||||
return LDAP_UNWILLING_TO_PERFORM;
|
||||
}
|
||||
#endif
|
||||
|
||||
ber = ber_init( &(ctrl->ldctl_value) );
|
||||
if (ber == NULL) {
|
||||
@ -1273,10 +1275,12 @@ static int parsePostRead (
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
#ifdef LDAP_X_TXN
|
||||
if ( op->o_txnSpec ) { /* temporary limitation */
|
||||
rs->sr_text = "cannot perform post-read in transaction";
|
||||
return LDAP_UNWILLING_TO_PERFORM;
|
||||
}
|
||||
#endif
|
||||
|
||||
ber = ber_init( &(ctrl->ldctl_value) );
|
||||
if (ber == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user