]> git.meshlink.io Git - catta/commitdiff
* do not accept empty strings in TXT records
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Jan 2006 20:38:39 +0000 (20:38 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Jan 2006 20:38:39 +0000 (20:38 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1120 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/rr.c

index 57ddca4e792073f597af64efddd10d98a3299b87..46aa7a2b5601251ce7a29d9363553200852c007e 100644 (file)
@@ -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;