From 296a294ab114ff49dcf7717c5a0d7d55ab39825a Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 8 Jun 2020 21:24:24 +0200 Subject: Remove whitespace errors from all files --- src/property_list_service.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/property_list_service.c') diff --git a/src/property_list_service.c b/src/property_list_service.c index f0fc830..7b5c738 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c @@ -224,6 +224,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis debug_info("received %d bytes", bytes); curlen += bytes; } + if (curlen < pktlen) { debug_info("received incomplete packet (%d of %d bytes)", curlen, pktlen); if (curlen > 0) { @@ -233,6 +234,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis free(content); return res; } + if ((pktlen > 8) && !memcmp(content, "bplist00", 8)) { plist_from_bin(content, pktlen, plist); } else if ((pktlen > 5) && !memcmp(content, "