From: Lennart Poettering Date: Thu, 25 Aug 2005 14:05:56 +0000 (+0000) Subject: * brrr, fix commit r442 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e23e657981370dc1ad19e5eca44654a36d34a6d4;p=catta * brrr, fix commit r442 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@444 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index b7965a3..27feefc 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -1549,7 +1549,7 @@ static DBusHandlerResult msg_server_impl(DBusConnection *c, DBusMessage *m, void return respond_string(c, m, "blah"); #else - if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { + if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { char txt[256]; snprintf(txt, sizeof(txt), "OS Error: %s", strerror(errno)); @@ -1584,7 +1584,7 @@ static DBusHandlerResult msg_server_impl(DBusConnection *c, DBusMessage *m, void #ifdef VALGRIND_WORKAROUND return respond_int32(c, m, 1); #else - if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { + if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { char txt[256]; snprintf(txt, sizeof(txt), "OS Error: %s", strerror(errno));