]> andersk Git - gssapi-openssh.git/commitdiff
fix buffer overflow OPENSSH_3_4P1_GSI_20020924
authorjbasney <jbasney>
Tue, 24 Sep 2002 19:32:15 +0000 (19:32 +0000)
committerjbasney <jbasney>
Tue, 24 Sep 2002 19:32:15 +0000 (19:32 +0000)
openssh/canohost.c

index b61c3841ce0397422ecff6ce23d747c3f448a549..1f7e15ab6bc4bb8b17e1af8b618130acd4378dfc 100644 (file)
@@ -417,7 +417,7 @@ make_fqhn(char **host)
 
     if (domainname) {
        domainname++;
-       fqhn = xmalloc(strlen(*host)+strlen(domainname)+1);
+       fqhn = xmalloc(strlen(*host)+strlen(domainname)+2);
        sprintf(fqhn, "%s.%s", *host, domainname);
        xfree(*host);
        *host = fqhn;
This page took 0.239753 seconds and 5 git commands to generate.