Browse Source

fix compiler warning in acct policy plugin

Rich Megginson 14 years ago
parent
commit
bc781018e6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldap/servers/plugins/acctpolicy/acct_plugin.c

+ 2 - 1
ldap/servers/plugins/acctpolicy/acct_plugin.c

@@ -102,6 +102,7 @@ acct_record_login( const char *dn, void *txn )
 	acctPluginCfg *cfg;
 	void *plugin_id;
 	Slapi_PBlock *modpb = NULL;
+	int skip_mod_attrs = 1; /* value doesn't matter as long as not NULL */
 
 	cfg = get_config();
 	plugin_id = get_identity();
@@ -126,7 +127,7 @@ acct_record_login( const char *dn, void *txn )
 	 	plugin_id, SLAPI_OP_FLAG_NO_ACCESS_CHECK |
 			SLAPI_OP_FLAG_BYPASS_REFERRALS );
 	slapi_pblock_set( modpb, SLAPI_TXN, txn );
-	slapi_pblock_set( modpb, SLAPI_SKIP_MODIFIED_ATTRS, 1);
+	slapi_pblock_set( modpb, SLAPI_SKIP_MODIFIED_ATTRS, &skip_mod_attrs );
 	slapi_modify_internal_pb( modpb );
 
 	slapi_pblock_get( modpb, SLAPI_PLUGIN_INTOP_RESULT, &ldrc );