[Prevent] Multiple minor bugfixes.
authorJan Olszak <j.olszak@samsung.com>
Mon, 14 Jan 2013 09:55:31 +0000 (10:55 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 15 Jan 2013 07:45:41 +0000 (08:45 +0100)
[Issue] Bugs found by Coverity.
[Bug] N/A
[Cause] N/A
[Solution] Fixed bugs.
[Verification] Build security-server.

Change-Id: I33df2ee3d0c8a6a1abbe6ff89063603c604bb2aa

src/security-srv/server/security-server-cookie.c

index 342762315cdd0c2e79e9f839680e51bec90a9900..2cb3839594fd17f4460b5c5ce7660bf39f7ec344 100644 (file)
@@ -571,7 +571,7 @@ int check_stored_cookie(unsigned char *cookie, int size)
        ret = SECURITY_SERVER_SUCCESS;
 
 error:
-       if(fd > 0)
+       if(fd >= 0)
                close(fd);
        return ret;
 }