ofp-parse: Use xstrdup() instead of strdup().
authorBen Pfaff <blp@ovn.org>
Mon, 11 Jan 2016 17:21:58 +0000 (09:21 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 11 Jan 2016 22:46:25 +0000 (14:46 -0800)
commitb7407f27a8f0de69ebe6b7b66ea51534c76fd6dd
tree6f69b4b4efa4efd7750579262c033e53ed9fde69
parentdcf5840f6678af88b738bfaea27726543a5f5387
ofp-parse: Use xstrdup() instead of strdup().

This avoids a null pointer dereference in the case of memory allocation
failure.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
lib/ofp-parse.c