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:05:53 +0000 (10:05 -0800)
commit4c6b0ad74fe4adc993949807d9d5d45124ff6f50
tree4c025e7611286f436b22237e35db40f564b485c3
parentcc23805ccf035324271ab149927c39e7701a6cdb
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