summaryrefslogtreecommitdiffstats
path: root/avahi-daemon
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-08-14 00:56:25 +0000
committerLennart Poettering <lennart@poettering.net>2005-08-14 00:56:25 +0000
commitb789f76475170c84fce85383279aa8f683ad1ff9 (patch)
tree79979a4fc6b3f63e51fe1fa82b155c9b8d1c3246 /avahi-daemon
parent843f5fba386f9787c1562ce02bea42bfdfc09898 (diff)
* allow SRV records with port == 0 (for flagship naming)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@312 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon')
-rw-r--r--avahi-daemon/static-services.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c
index ff2602f..03824fd 100644
--- a/avahi-daemon/static-services.c
+++ b/avahi-daemon/static-services.c
@@ -349,7 +349,7 @@ static void XMLCALL xml_end(void *data, const char *el) {
case XML_TAG_SERVICE:
- if (u->service->port == 0 || !u->service->type) {
+ if (!u->service->type) {
avahi_log_error("%s: parse failure: service incomplete.", u->group->filename);
u->failed = TRUE;
return;
@@ -369,7 +369,7 @@ static void XMLCALL xml_end(void *data, const char *el) {
p = u->buf ? atoi(u->buf) : 0;
- if (p <= 0 || p > 0xFFFF) {
+ if (p < 0 || p > 0xFFFF) {
avahi_log_error("%s: parse failure: invalid port specification \"%s\".", u->group->filename, u->buf);
u->failed = TRUE;
return;