X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibsystemd%2Fsd-bus%2Fbus-match.c;fp=src%2Flibsystemd%2Fsd-bus%2Fbus-match.c;h=0e92a85ef756fdaf177e8abdcf9c61394c5531dc;hp=5658c61ba789fba1529c99112bb4be8159f90b69;hb=771b2724c0f9591e8f4dd7463c15bf0c957737dc;hpb=7d31d92400bab9648016136da1b1e8c5cff1bfcf diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 5658c61ba..0e92a85ef 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -748,6 +748,9 @@ int bus_match_parse( bool escaped = false, quoted; uint8_t u; + /* Avahi's match rules appear to include whitespace, skip over it */ + p += strspn(p, " "); + eq = strchr(p, '='); if (!eq) return -EINVAL;