r19625@cathode-dark-space: jaltman | 2007-06-22 14:55:46 -0400
ticket: 5584
1. When freeing a message type object, it should also be removed from
the all_msg_types list.
2. When a type handler is being removed from a message type, we
shouldn't re-create the message type object if it has already been
destroyed.
ticket: 5584
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19783
dc483132-0cff-0310-8789-
dd5450dbe970
pt->completion_handler = NULL;
+ LDELETE(&all_msg_types, pt);
+
PFREE(pt);
}
if (type == KMSG_SYSTEM)
return KHM_ERROR_INVALID_PARAM;
- if(!msg_types[type])
- kmqint_msg_type_create(type);
+ if(!msg_types[type]) {
+ if (handler)
+ kmqint_msg_type_create(type);
+ else
+ return KHM_ERROR_SUCCESS;
+ }
if(!msg_types[type])
return KHM_ERROR_NO_RESOURCES;