From 1069ff4d7efbd2d0aceca1b98c8fd02872d51589 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 3 Oct 2014 21:20:23 +0200 Subject: [PATCH] satip: coverity fixes --- src/input/mpegts/satip/satip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/mpegts/satip/satip.c b/src/input/mpegts/satip/satip.c index 2f7cbba3..694a318d 100644 --- a/src/input/mpegts/satip/satip.c +++ b/src/input/mpegts/satip/satip.c @@ -385,7 +385,7 @@ satip_device_create( satip_device_info_t *info ) if (!tvh_hardware_create0((tvh_hardware_t*)sd, &satip_device_class, uuid.hex, conf)) { - free(sd); + /* Note: sd is freed in above fcn */ return NULL; } @@ -882,9 +882,9 @@ satip_discovery_service_received /* Sanity checks */ if (st == NULL || strcmp(st, "urn:ses-com:device:SatIPServer:1")) return; - if (uuid == NULL && strlen(uuid) < 16) + if (uuid == NULL || strlen(uuid) < 16) return; - if (location == NULL && strncmp(location, "http://", 7)) + if (location == NULL || strncmp(location, "http://", 7)) return; if (bootid == NULL || configid == NULL || server == NULL) return;