rjancewicz / python-kadmin

Python module for kerberos admin (kadm5)
MIT License
35 stars 40 forks source link

Prevent NULL pointer dereference if kadm5_init_with_creds fails #41

Closed michaelweiser closed 9 years ago

michaelweiser commented 9 years ago

If kadm5_init_with_ccreds failed, the pointer to the kadmin Python object would be set to NULL but cleanup would still try to use kadmin->context when freeing princ and closing the ccache.