Claudio Fontana <[EMAIL PROTECTED]> writes:

> here's my segfault. It requires some preparation.
[...]

Thanks for the detailed report and the stack trace.  This patch should
fix the segmentation fault.


2005-05-10  Hrvoje Niksic  <[EMAIL PROTECTED]>

        * res.c (res_register_specs): Correctly pass "old data" pointers
        to hash_table_get_pair.

Index: src/res.c
===================================================================
RCS file: /pack/anoncvs/wget/src/res.c,v
retrieving revision 1.10
diff -u -r1.10 res.c
--- src/res.c   2003/11/02 19:56:37     1.10
+++ src/res.c   2005/05/10 19:04:37
@@ -501,11 +501,7 @@
   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);

Reply via email to