Index: iquery.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/utilities/iquery.c,v
retrieving revision 1.13
diff -u -r1.13 iquery.c
--- iquery.c	15 Sep 2006 00:48:42 -0000	1.13
+++ iquery.c	12 Oct 2006 22:16:54 -0000
@@ -62,10 +62,10 @@
 void init_iquery(void){
     char *type = netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID, 
                                        NETSNMP_DS_LIB_APPTYPE);
-    netsnmp_ds_register_config(ASN_OCTET_STR, type, "agentSecName",
+    netsnmp_ds_register_premib(ASN_OCTET_STR, type, "agentSecName",
                                NETSNMP_DS_APPLICATION_ID,
                                NETSNMP_DS_AGENT_INTERNAL_SECNAME);
-    netsnmp_ds_register_config(ASN_OCTET_STR, type, "iquerySecName",
+    netsnmp_ds_register_premib(ASN_OCTET_STR, type, "iquerySecName",
                                NETSNMP_DS_APPLICATION_ID,
                                NETSNMP_DS_AGENT_INTERNAL_SECNAME);
 
@@ -85,7 +85,7 @@
                        NETSNMP_DS_AGENT_INTERNAL_SECLEVEL, SNMP_SEC_LEVEL_AUTHNOPRIV);
 
     snmp_register_callback(SNMP_CALLBACK_LIBRARY, 
-                           SNMP_CALLBACK_POST_READ_CONFIG,
+                           SNMP_CALLBACK_POST_PREMIB_READ_CONFIG,
                            _init_default_iquery_session, NULL);
 }
 
