lorikeet-heimdal: hdb_resolve() strrchr() instead of strchr()...
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Aug 2008 09:47:23 +0000 (11:47 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 26 Mar 2009 08:54:50 +0000 (09:54 +0100)
metze

lib/hdb/keytab.c

index 8232774a82ec2ab7ed5e298f995d7ab5cf5d59d5..f8e26da3117ab72266973429c33d7c98fa2a8ce8 100644 (file)
@@ -59,7 +59,7 @@ hdb_resolve(krb5_context context, const char *name, krb5_keytab id)
        return ENOMEM;
     }
     db = name;
-    mkey = strchr(name, ':');
+    mkey = strrchr(name, ':');
     if(mkey == NULL || mkey[1] == '\0') {
        if(*name == '\0')
            d->dbname = NULL;