From 34e722849a333d0a9103c975ca18a2d32d5aa0b2 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 5 Feb 2019 12:45:57 -0500 Subject: [PATCH] 2019-02-05 Fred Gleason * Fixed a bug in rdairplay(1) that threw a segfault when processing a null RML. --- ChangeLog | 3 +++ lib/rdripc.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b7b59cae..f0338f54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18457,3 +18457,6 @@ 2019-02-05 Fred Gleason * Added a Maintainer's Note to the 'MainObject::SchemaMap()' method in rddbmgr(8). +2019-02-05 Fred Gleason + * Fixed a bug in rdairplay(1) that threw a segfault when processing + a null RML. diff --git a/lib/rdripc.cpp b/lib/rdripc.cpp index d3c4bb6d..aae4dd61 100644 --- a/lib/rdripc.cpp +++ b/lib/rdripc.cpp @@ -240,6 +240,10 @@ void RDRipc::DispatchCommand() // printf("RDRipc::DispatchCommand: %s\n",(const char *)ripc_accum.toUtf8()); QStringList cmds=ripc_accum.split(" ",QString::SkipEmptyParts); + + if(cmds.size()==0) { + return; + } if(cmds[0]=="PW") { // Password Response SendCommand("RU!");