[rbldnsd] TXT troubles in 0.93

Brett Mueller rbldnsd@corpit.ru
Thu, 22 May 2003 16:42:39 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Tokarev wrote:
> Brett Mueller wrote:
>> My entries without specific TXT look like this (so we know which
>> sysadmin entered it, and when):
>>
>>   opt4email.com           # BEM:041003

> ...  The following patch (apply manually due to
> tab characters converted to spaces in email):
>
> diff -u -2 -r1.27 rbldnsd_dnset.c
> --- rbldnsd_dnset.c     18 May 2003 23:08:56 -0000      1.27
> +++ rbldnsd_dnset.c     22 May 2003 17:56:52 -0000
> @@ -88,5 +88,5 @@
>    else {                       /* else parse rest */
>      SKIPSPACE(s);
> -    if (!*s)                   /* use default if none given */
> +    if (!*s || *s == '#')      /* use default if none given */
>        rr = ds->def_rr;
>      else if (!(size = parse_a_txt(s, &rr, ds->def_rr))) {
>
> will "fix" this problem, by recognizing comment at a start of
> "value" of a record.  But i'm not sure either whenever this
> is a right way to go or not.

Thanks for this bandage.  It should get me by.  I assume I need a
similar "fix" in rbldnsd_ip4set.c?

Thanks,

Brett

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE+zWBu7K5JOxeDDkoRAolwAJwJXtWXx44Ms8XudB9q3Em7T8SvBgCfdaIF
mdOlMW/wa678Dw4nxyGl/hU=
=zKD6
-----END PGP SIGNATURE-----