Post decrement should have been predecrement; fixed fencepost error
authorTheodore Tso <tytso@mit.edu>
Wed, 22 Sep 1993 02:41:59 +0000 (02:41 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 22 Sep 1993 02:41:59 +0000 (02:41 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2649 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/bld_princ.c

index 38384ab8963a0060a056b2ae2976c8f25e258d84..f56fefb0e6140edf79b367c61e44d8a58ba5faa9 100644 (file)
@@ -81,7 +81,7 @@ va_list ap;
                                          sizeof(krb5_data)*(count*2));
            if (!p_tmp) {
            free_out:
-                   while (i-- >= 0)
+                   while (--i >= 0)
                        xfree(data[i].data);
                    xfree(data);
                    xfree(tmpdata);