t_walk_rtree.c - was not checking number of arguments properly
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5455
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Apr 22 11:06:45 1995 Ezra Peisach (epeisach@kangaroo.mit.edu)
+
+ * Makefile.in: t_walk_rtree needs libcrypto
+
+ * t_walk_rtree.c: error in checking for argument count
+
Thu Apr 20 16:23:23 1995 Theodore Y. Ts'o (tytso@dcl)
* copy_addrs.c, copy_athctr.c, copy_auth.c, copy_cksum.c,
COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
T_WALK_RTREE_OBJS= t_walk_rtree.o walk_rtree.o tgtname.o unparse.o \
- free_rtree.o bld_pr_ext.o $(COMERRLIB) $(TOPLIBD)/libkrb5.a
+ free_rtree.o bld_pr_ext.o $(COMERRLIB) $(TOPLIBD)/libkrb5.a \
+ $(TOPLIBD)/libcrypto.a
t_walk_rtree: $(T_WALK_RTREE_OBJS)
$(CC) -o t_walk_rtree $(T_WALK_RTREE_OBJS)
krb5_init_context(&context);
krb5_init_ets(context);
- if (argc < 3 && argc > 4) {
+ if (argc < 3 || argc > 4) {
fprintf(stderr,
"Usage: %s client-realm server-realm [sep_char]\n",
argv[0]);