PERFORCE change 109208 for review

John Birrell jb at FreeBSD.org
Sat Nov 4 03:01:28 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109208

Change 109208 by jb at jb_freebsd8 on 2006/11/04 03:00:41

	Fix the argument checking.

Affected files ...

.. //depot/projects/dtrace/src/lib/libelf/gelf_getshdr.c#4 edit

Differences ...

==== //depot/projects/dtrace/src/lib/libelf/gelf_getshdr.c#4 (text+ko) ====

@@ -89,7 +89,7 @@
 	Elf32_Shdr *sh32;
 
 	if (s == NULL || d == NULL ||
-	    (e = s->s_elf) || e->e_kind != ELF_K_ELF) {
+	    (e = s->s_elf) == NULL || e->e_kind != ELF_K_ELF) {
 		LIBELF_SET_ERROR(ARGUMENT, 0);
 		return (NULL);
 	}


More information about the p4-projects mailing list