delphij 1fa9b754c4 Fix use-after-free introduced in r300388.
In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by:	jemalloc via kevlo
Reviewed by:	cem, ngie (earlier version)
MFC after:	3 days
Differential Revision:    https://reviews.freebsd.org/D11288
2017-06-22 05:10:16 +00:00
..
2017-02-28 23:42:47 +00:00
2016-08-30 02:07:15 +00:00
MFH
2016-04-04 23:55:32 +00:00
MFH
2016-03-02 16:14:46 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-11-11 23:28:07 +00:00
2017-02-28 23:42:47 +00:00
2017-06-05 11:55:26 +00:00
2016-11-20 06:10:12 +00:00
2017-03-11 00:08:11 +00:00
2017-05-11 13:46:30 +00:00
MFH
2016-03-02 16:14:46 +00:00
2017-02-27 00:10:00 +00:00
2017-05-23 09:29:05 +00:00
MFH
2016-04-11 15:24:59 +00:00
MFH
2016-04-13 16:19:50 +00:00
2017-02-14 13:35:59 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00