(find_dynamic_method): if there isn't a prefix, don't load anything

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12415 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-06-30 10:34:05 +00:00
parent 271e76e634
commit a1a43053f6

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2001, 2003 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -231,13 +231,13 @@ find_dynamic_method (krb5_context context,
dl = NULL; dl = NULL;
p = strchr(filename, ':'); p = strchr(filename, ':');
if (p != NULL) {
len = p - filename; /* if no prefix, don't know what module to load, just ignore it */
*rest = filename + len + 1; if (p == NULL)
} else { return NULL;
len = strlen(filename);
*rest = ""; len = p - filename;
} *rest = filename + len + 1;
prefix = strndup(filename, len); prefix = strndup(filename, len);
if (prefix == NULL) if (prefix == NULL)