瀏覽代碼

use slapi_pblock_set to set the ldap result code for the be postop plugins

use slapi_pblock_set to set the ldap result code for the be postop plugins
instead of slapi_pblock_get
Rich Megginson 15 年之前
父節點
當前提交
481ed4a2b5
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ldap/servers/slapd/back-ldbm/ldbm_delete.c
  2. 1 1
      ldap/servers/slapd/back-ldbm/ldbm_modrdn.c

+ 1 - 1
ldap/servers/slapd/back-ldbm/ldbm_delete.c

@@ -893,7 +893,7 @@ common_return:
 	}
 	
 	/* result code could be used in the bepost plugin functions. */
-	slapi_pblock_get(pb, SLAPI_RESULT_CODE, &ldap_result_code);
+	slapi_pblock_set(pb, SLAPI_RESULT_CODE, &ldap_result_code);
 	/*
 	 * The bepostop is called even if the operation fails,
 	 * but not if the operation is purging tombstones.

+ 1 - 1
ldap/servers/slapd/back-ldbm/ldbm_modrdn.c

@@ -997,7 +997,7 @@ common_return:
     moddn_unlock_and_return_entries(be,&e,&existingentry);
 
     /* result code could be used in the bepost plugin functions. */
-    slapi_pblock_get(pb, SLAPI_RESULT_CODE, &ldap_result_code);
+    slapi_pblock_set(pb, SLAPI_RESULT_CODE, &ldap_result_code);
     /*
      * The bepostop is called even if the operation fails.
      */