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 23:01:36 +0000 (15:01 -0800)
commit2c570ad128bc3b0413b5ddae79acc1e6de3949e0
tree3f1feb11183f379b788566dfcbd170b69308e0f5
parente79d1ed43b75f77223fb2030ddfa5d2523dc6635
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