Oops, checked in wrote version of gss-misc
authorTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 19:35:24 +0000 (19:35 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 28 Apr 1995 19:35:24 +0000 (19:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5627 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gss-sample/gss-misc.c

index d43928b1c814cbbe99114d939bbb6cad1941c41f..f4478aa7bb468ec90bd2f547e14833352ff470bf 100644 (file)
@@ -188,12 +188,15 @@ static void display_status_1(m, code, type)
      gss_buffer_desc msg;
      int msg_ctx;
      
+     if (display_file == 0)
+        display_file = stderr;
+
      msg_ctx = 0;
      while (1) {
          maj_stat = gss_display_status(&min_stat, code,
                                       type, GSS_C_NULL_OID,
                                       &msg_ctx, &msg);
-         fprintf(stderr, "GSS-API error %s: %s\n", m,
+         fprintf(display_file, "GSS-API error %s: %s\n", m,
                  (char *)msg.value); 
          (void) gss_release_buffer(&min_stat, &msg);