]> git.saurik.com Git - apple/syslog.git/commitdiff
syslog-322.30.1.tar.gz os-x-10113 v322.30.1
authorApple <opensource@apple.com>
Wed, 2 Dec 2015 17:45:58 +0000 (17:45 +0000)
committerApple <opensource@apple.com>
Wed, 2 Dec 2015 17:45:58 +0000 (17:45 +0000)
syslogd.tproj/dbserver.c

index 7f829594ea3ad4209e392ded75010de8d1a85edc..8595462262843e181d790e912dc8731f10b30c77 100644 (file)
@@ -170,7 +170,7 @@ add_lockdown_session(int fd)
        dispatch_async(watch_queue, ^{
                if (global.lockdown_session_count == 0) global.lockdown_session_fds = NULL;
 
-               global.lockdown_session_fds = reallocf(global.lockdown_session_fds, global.lockdown_session_count + 1 * sizeof(int));
+               global.lockdown_session_fds = reallocf(global.lockdown_session_fds, (global.lockdown_session_count + 1) * sizeof(int));
 
                if (global.lockdown_session_fds == NULL)
                {