From 684115ed73351c1ce055e823686225f8f8f21b27 Mon Sep 17 00:00:00 2001 Message-Id: <684115ed73351c1ce055e823686225f8f8f21b27.1714862684.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 4 May 2020 16:25:35 +0100 Subject: [PATCH] clients/playrtp.c: Don't crash if an interface has a null address. Organization: Straylight/Edgeware From: Mark Wooding Just skip it and move on. --- clients/playrtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/playrtp.c b/clients/playrtp.c index 8878e8c..372bfcf 100644 --- a/clients/playrtp.c +++ b/clients/playrtp.c @@ -809,6 +809,7 @@ int main(int argc, char **argv) { disorder_fatal(errno, "error calling getifaddrs"); /* Try to pick a good one */ for(; ifa; ifa = ifa->ifa_next) { + if(!ifa->ifa_addr) continue; if(bestifa == NULL || compare_interfaces(ifa, bestifa, family) > 0) bestifa = ifa; -- [mdw]