From bfaebba3b1d7f26880bbc7c1970f1b5c5775aa97 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 30 Jan 2006 20:38:39 +0000 Subject: * do not accept empty strings in TXT records git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1120 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/rr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-core/rr.c b/avahi-core/rr.c index 57ddca4..46aa7a2 100644 --- a/avahi-core/rr.c +++ b/avahi-core/rr.c @@ -691,7 +691,7 @@ int avahi_record_is_valid(AvahiRecord *r) { AvahiStringList *strlst; for (strlst = r->data.txt.string_list; strlst; strlst = strlst->next) - if (strlst->size > 255) + if (strlst->size > 255 || strlst->size <= 0) return 0; return 1; -- cgit