commit | e1400f04044e8405419ee4534f8ff4f45c5d532a | [log] [tgz] |
---|---|---|
author | Eric Paris <[email protected]> | Tue Feb 05 14:15:56 2013 -0500 |
committer | Eric Paris <[email protected]> | Tue Feb 05 20:19:04 2013 -0500 |
tree | 3fbf4ff268fcb88635dff1df3ae6a09a9653303d | |
parent | d0c7f6ea4f4c5bf9e1e21b67231e5b1a88020501 [diff] |
libsemanage: genhomedircon: double free in get_home_dirs Right before the call to semanage_list_sort() we do some cleanup. Including endpwent(); free(rbuf); semanage_list_destroy(&shells); If the call to the list sort fails we will go to fail: and will do those cleanups a second time. Whoops. Do the list sort before the generic cleanups so the failure code isn't run after the default cleanup. Signed-off-by: Eric Paris <[email protected]>