Li RongQing 589506f1e7 libceph: fix a use after free issue in osdmap_set_max_osd
If the state variable is krealloced successfully, map->osd_state will be
freed, once following two reallocation failed, and exit the function
without resetting map->osd_state, map->osd_state become a wild pointer.

fix it by resetting them after krealloc successfully.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-10-14 21:03:21 +04:00
..
2014-07-01 23:46:21 -07:00
2014-09-30 14:00:48 -04:00
2013-09-23 16:52:45 -04:00
2014-06-04 22:46:38 -07:00
2014-08-13 18:13:19 -06:00
2014-08-19 11:16:38 -07:00
2013-11-21 13:09:42 -05:00