mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-30 18:39:28 -05:00
Fix build if LDAP_X_TXN is undefined
This commit is contained in:
parent
ffee887d71
commit
486721d531
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue