pktbuf: Always initialize '*bufferp' even when 'pb == NULL'.
authorBen Pfaff <blp@nicira.com>
Sat, 17 Jan 2015 17:21:04 +0000 (09:21 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 19 Jan 2015 18:09:33 +0000 (10:09 -0800)
commitfad10d5ece19d740eccd30f84de9f6bc9ac77abb
treeeb8001265719622d893b9b5a19924a4cc5cf82c9
parent3282e5118707efc3ba07f7bd17f5f82fe931a732
pktbuf: Always initialize '*bufferp' even when 'pb == NULL'.

Otherwise if a service connection (which does not have buffers) attempts
to use buffers, '*bufferp' will be uninitialized, which can cause a
segfault in the caller.

Found using OFtest configured to use service (active rather than passive)
connections.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
ofproto/pktbuf.c