packages: openssh/openssh-heimdal.patch - off-by-one (: + \0)
baggins
baggins at pld-linux.org
Tue Apr 19 22:37:23 CEST 2011
Author: baggins Date: Tue Apr 19 20:37:23 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- off-by-one (: + \0)
---- Files affected:
packages/openssh:
openssh-heimdal.patch (1.14 -> 1.15)
---- Diffs:
================================================================
Index: packages/openssh/openssh-heimdal.patch
diff -u packages/openssh/openssh-heimdal.patch:1.14 packages/openssh/openssh-heimdal.patch:1.15
--- packages/openssh/openssh-heimdal.patch:1.14 Tue Apr 19 22:23:48 2011
+++ packages/openssh/openssh-heimdal.patch Tue Apr 19 22:37:18 2011
@@ -51,7 +51,7 @@
+ client->store.filename = xstrdup(ccache_name);
+ }
+ client->store.envvar = "KRB5CCNAME";
-+ len = strlen(ccache_type) + strlen(ccache_name) + 1;
++ len = strlen(ccache_type) + strlen(ccache_name) + 2;
+ client->store.envval = xmalloc(len);
+ snprintf(client->store.envval, len, "%s:%s", ccache_type, ccache_name);
+#else
@@ -94,7 +94,7 @@
+ if (strncmp(ccache_type, "FILE", 4) == 0) {
+ authctxt->krb5_ticket_file = (char *)ccache_name;
+ }
-+ len = strlen(ccache_type) + strlen(ccache_name) + 1;
++ len = strlen(ccache_type) + strlen(ccache_name) + 2;
+ authctxt->krb5_ccname = xmalloc(len);
+ snprintf(authctxt->krb5_ccname, len, "%s:%s", ccache_type, ccache_name);
+#else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/openssh/openssh-heimdal.patch?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list