Fixed bug in the options parser;forgot to check for a NULL in a while loop
authorTheodore Tso <tytso@mit.edu>
Wed, 6 Mar 1991 16:43:58 +0000 (16:43 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 6 Mar 1991 16:43:58 +0000 (16:43 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1866 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/kprop.c

index 05351df42d4a9340b3ca5083db2b151f87f983d9..cf9a18c1cc7a82dddfa68c6cee8cacd4ce1db01f 100644 (file)
@@ -119,7 +119,7 @@ void PRS(argv)
        while (word = *argv++) {
                if (*word == '-') {
                        word++;
-                       while (ch = *word++) {
+                       while (word && (ch = *word++)) {
                                switch(ch){
                                case 'r':
                                        if (*word)