Skip to content
Snippets Groups Projects
Commit 486721d5 authored by Luke Howard's avatar Luke Howard
Browse files

Fix build if LDAP_X_TXN is undefined

parent ffee887d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment