mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-08-28 21:35:53 +00:00
128ad3ca2d
Bridge driver panics in `CreateNetwork` if called without a prior `Config` call. This causes issues in dnet which tries to create network using default driver configuration. It should be valid to call `CreateNetwork` without a prior `Config` call in which case we need to assume default driver config. Fixed this by properly initializing the driver config pointer. Also introduced a `configured` bool to make sure that still `Config` is called exactly once for the instance of the bridge driver. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>