fixup! acm: Fix coverity defects 29/212929/2 accepted/tizen/unified/20190830.040810 submit/tizen/20190829.103037
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 28 Aug 2019 07:43:57 +0000 (16:43 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 29 Aug 2019 10:11:41 +0000 (19:11 +0900)
[Version] 11.1.72
[Issue Type] Security

Change-Id: I1dcd3ea1626f0113b3d2696748c9d2ca4412808e

packaging/pulseaudio-modules-tizen.spec
src/acm.c

index d71d26f..8e4203a 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          11.1.71
+Version:          11.1.72
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 2019e52..6494e4f 100644 (file)
--- a/src/acm.c
+++ b/src/acm.c
@@ -270,7 +270,12 @@ static int ipc_get_client_fd(struct userdata *u, ipc_channel_t channel)
             close(sockfd);
             return -1;
         }
-        fcntl(sockfd, F_SETFL, flag | O_NONBLOCK);
+
+        if (fcntl(sockfd, F_SETFL, flag | O_NONBLOCK) != 0) {
+            pa_log_error("unable to set file status on socket fd %d: %s", sockfd, pa_cstrerror(errno));
+            close(sockfd);
+            return -1;
+        }
     }
 
     memset(&address, 0, sizeof(address));