DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel/arpresolve: Initialize 'rt' with NULL.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Mar 2013 04:21:29 -0800 (PST)

commit 18c4274928f2ad615380ae6e5c7c9525dc1fc0fc
Author: Sascha Wildner <saw@online.de>
Date:   Sun Mar 3 13:19:41 2013 +0100

    kernel/arpresolve: Initialize 'rt' with NULL.
    
    This fixes a case where NULL was passed for 'rt0' and 'rt' could end up
    uninitialized at the log() call in line 509.
    
    Review by sephe showed that we never pass NULL as 'rt0' but let's fix it
    anyway, to be safer.
    
    Reported-by: enroljas
    Reviewed-by: sephe

Summary of changes:
 sys/netinet/if_ether.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18c4274928f2ad615380ae6e5c7c9525dc1fc0fc


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]