Date: Mon, 13 Mar 2006 12:47:47 GMT From: soc-bushman <soc-bushman@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93245 for review Message-ID: <200603131247.k2DCllG6020483@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93245 Change 93245 by soc-bushman@soc-bushman_stinger on 2006/03/13 12:47:38 agents error fixed - without (buffer == NULL) check cached crashed while performing actual lookups Affected files ... .. //depot/projects/soc2005/nsswitch_cached/src/usr.sbin/cached/cached/agents/group.c#5 edit .. //depot/projects/soc2005/nsswitch_cached/src/usr.sbin/cached/cached/agents/services.c#5 edit Differences ... ==== //depot/projects/soc2005/nsswitch_cached/src/usr.sbin/cached/cached/agents/group.c#5 (text+ko) ==== @@ -66,7 +66,7 @@ desired_size += ALIGNBYTES + (mem_size + 1) * sizeof(char *); } - if (desired_size > *buffer_size) { + if ((desired_size > *buffer_size) || (buffer == NULL)) { *buffer_size = desired_size; TRACE_OUT(group_marshal_func); return (NS_RETURN); ==== //depot/projects/soc2005/nsswitch_cached/src/usr.sbin/cached/cached/agents/services.c#5 (text+ko) ==== @@ -69,7 +69,7 @@ (aliases_size + 1); } - if (*buffer_size < desired_size) { + if ((*buffer_size < desired_size) || (buffer == NULL)) { *buffer_size = desired_size; TRACE_OUT(services_marshal_func); return (NS_RETURN);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603131247.k2DCllG6020483>