From: Ken Raeburn Date: Tue, 21 Nov 2000 23:32:47 +0000 (+0000) Subject: * cmds.c (globulize): Use correct address of globbed results when X-Git-Tag: krb5-1.3-alpha1~1749 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4a5a23cec90dc38ac18e3ed372a73e685b89ca8;p=krb5.git * cmds.c (globulize): Use correct address of globbed results when freeing storage. Patch from Nalin Dahyabhai . git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index 7b84be3b8..43034a5f0 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,8 @@ +2000-11-21 Ken Raeburn + + * cmds.c (globulize): Use correct address of globbed results when + freeing storage. Patch from Nalin Dahyabhai . + 2000-10-23 Tom Yu * secure.h: Change SESSION to refer to &cred.session instead, so diff --git a/src/appl/gssftp/ftp/cmds.c b/src/appl/gssftp/ftp/cmds.c index d22bb71e5..3ef5e8d28 100644 --- a/src/appl/gssftp/ftp/cmds.c +++ b/src/appl/gssftp/ftp/cmds.c @@ -1854,6 +1854,7 @@ static int globulize(cpp) char **cpp; { char **globbed; + char **globbed1; if (!doglob) return (1); @@ -1867,10 +1868,11 @@ static int globulize(cpp) return (0); } if (globbed) { - *cpp = *globbed++; + globbed1 = globbed; + *cpp = *globbed1++; /* don't waste too much memory */ if (*globbed) { - blkfree(globbed); + blkfree(globbed1); free((char *)globbed); } }