Enable talloc error reporting for tids and tidc
authorSam Hartman <hartmans@debian.org>
Mon, 21 Jul 2014 21:43:38 +0000 (17:43 -0400)
committerSam Hartman <hartmans@debian.org>
Mon, 21 Jul 2014 21:44:07 +0000 (17:44 -0400)
tid/example/tidc_main.c
tid/example/tids_main.c

index 90efd4e..e3b6e5c 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <talloc.h>
 
 #include <gsscon.h>
 #include <tid_internal.h>
@@ -96,6 +97,7 @@ int main (int argc,
   int rc;
   gss_ctx_id_t gssctx;
 
+  talloc_set_log_stderr();
   /* Parse command-line arguments */ 
   if (argc != 5) {
     tidc_print_usage(argv[0]);
index f47913f..dba6185 100644 (file)
@@ -263,6 +263,7 @@ int main (int argc,
   const char *hostname = NULL;
   TR_NAME *gssname = NULL;
 
+  talloc_set_log_stderr();
   /* Parse command-line arguments */ 
   if (argc != 5) {
     fprintf(stdout, "Usage: %s <ip-address> <gss-name> <hostname> <database-name>\n", argv[0]);