[gPXE-devel] [PATCH 1/2] [uri] Fix NULL dereference in parse_uri()

Stefan Hajnoczi stefanha at gmail.com
Sun Apr 18 06:07:53 EDT 2010


Nice find :).

Perhaps the parts dependent on uri->authority should be inside the if body:

if ( strncmp ( path, "//", 2 ) == 0 ) {

The goto achieves the same effect but without moving the code into the
if body to make its scope clear.

Stefan


More information about the gPXE-devel mailing list