Module Name: src Committed By: apb Date: Thu Feb 7 11:24:15 UTC 2013
Modified Files: src/sbin/ifconfig: env.c Log Message: Don't call prop_distionary_make_immutable on a NULL pointer. Coverity CID 275179. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sbin/ifconfig/env.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/ifconfig/env.c diff -u src/sbin/ifconfig/env.c:1.7 src/sbin/ifconfig/env.c:1.8 --- src/sbin/ifconfig/env.c:1.7 Mon Dec 13 17:35:08 2010 +++ src/sbin/ifconfig/env.c Thu Feb 7 11:24:15 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: env.c,v 1.7 2010/12/13 17:35:08 pooka Exp $ */ +/* $NetBSD: env.c,v 1.8 2013/02/07 11:24:15 apb Exp $ */ /*- * Copyright (c) 2008 David Young. All rights reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: env.c,v 1.7 2010/12/13 17:35:08 pooka Exp $"); +__RCSID("$NetBSD: env.c,v 1.8 2013/02/07 11:24:15 apb Exp $"); #endif /* not lint */ #include <errno.h> @@ -67,7 +67,8 @@ prop_dictionary_augment(prop_dictionary_ } } prop_object_iterator_release(i); - prop_dictionary_make_immutable(d); + if (d !== NULL) + prop_dictionary_make_immutable(d); return d; }