Ticket #320 (new defect)
Opened 3 years ago
CNAME loop causes avahi-daemon to crash
| Reported by: | benja | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Component: | avahi-core | |
| Keywords: | Cc: | benja@… |
Description
Hi there,
I was playing with http://www.avahi.org/wiki/Examples/PythonPublishAlias and I accidentaly published a cname named like the host name.
on host lenny.local, add a cname 'lenny.local' $ avahi-alias.py lenny.local
on another host $ dig lenny.local => avahi-daemon crashes due to exhausted stack space (i.e. infinite loop).
I see two issues:
- avahi shouldn't allow to register a new CNAME when there is already some record defined for this name.
- avahi-daemon shouldn't go into an infinite loop. I believe it should either detect that it's in a loop or simply limit the number of cname lookup redirections to a reasonable value.
Thanks !
Note: See
TracTickets for help on using
tickets.
