service location plugin returning no addresses handled incorrectly
authorKen Raeburn <raeburn@mit.edu>
Thu, 5 Apr 2007 20:22:28 +0000 (20:22 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 5 Apr 2007 20:22:28 +0000 (20:22 +0000)
commite8c89c41b5265cde00427299245b20e7c89b6722
tree5c3db61e6bd3d4dd8d84c608c41451d6f9f8faba
parentcd1c8b8a1a9bfd77eae9fbf29bd3273695019125
service location plugin returning no addresses handled incorrectly

If a locate plugin (e.g., the Python sample plugin and script, when
given realm BOBO.MIT.EDU) returns no error but no addresses, the library
won't report an error, but will try to make contact, and eventually
crash with a null pointer dereference.

Fix: If a plugin returns a value other than PLUGIN_NO_HANDLE, including
success, continue into the code that checks for an empty address list.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19399 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/locate_kdc.c