mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +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;
|
return LDAP_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LDAP_X_TXN
|
||||||
if ( op->o_txnSpec ) { /* temporary limitation */
|
if ( op->o_txnSpec ) { /* temporary limitation */
|
||||||
rs->sr_text = "cannot perform pre-read in transaction";
|
rs->sr_text = "cannot perform pre-read in transaction";
|
||||||
return LDAP_UNWILLING_TO_PERFORM;
|
return LDAP_UNWILLING_TO_PERFORM;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ber = ber_init( &(ctrl->ldctl_value) );
|
ber = ber_init( &(ctrl->ldctl_value) );
|
||||||
if (ber == NULL) {
|
if (ber == NULL) {
|
||||||
@ -1273,10 +1275,12 @@ static int parsePostRead (
|
|||||||
return LDAP_PROTOCOL_ERROR;
|
return LDAP_PROTOCOL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef LDAP_X_TXN
|
||||||
if ( op->o_txnSpec ) { /* temporary limitation */
|
if ( op->o_txnSpec ) { /* temporary limitation */
|
||||||
rs->sr_text = "cannot perform post-read in transaction";
|
rs->sr_text = "cannot perform post-read in transaction";
|
||||||
return LDAP_UNWILLING_TO_PERFORM;
|
return LDAP_UNWILLING_TO_PERFORM;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ber = ber_init( &(ctrl->ldctl_value) );
|
ber = ber_init( &(ctrl->ldctl_value) );
|
||||||
if (ber == NULL) {
|
if (ber == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user