diff --git a/src/ChangeLog b/src/ChangeLog
index 2991a9eb..41bca9f4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
+
+	* res.c (res_register_specs): Correctly pass pointers to
+	hash_table_get_pair.
+
 2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
 
 	* http.c (gethttp): Call ssl_check_server_identity.
diff --git a/src/res.c b/src/res.c
index e92f79c3..0be8e7cf 100644
--- a/src/res.c
+++ b/src/res.c
@@ -501,11 +501,7 @@ res_register_specs (const char *host, int port, struct robot_specs *specs)
   if (!registered_specs)
     registered_specs = make_nocase_string_hash_table (0);
 
-  /* Required to shut up the compiler. */
-  old    = NULL;
-  hp_old = NULL;
-
-  if (hash_table_get_pair (registered_specs, hp, hp_old, old))
+  if (hash_table_get_pair (registered_specs, hp, &hp_old, &old))
     {
       if (old)
 	free_specs (old);