Commit 0ab2dff6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

based on Gisle's comment, I removed the use of syslog() and fixed the

netdb.h include, then I re-indented some code to use curl-style
parent bff59dac
Loading
Loading
Loading
Loading
+67 −65
Original line number Diff line number Diff line
@@ -46,8 +46,9 @@
#include "security.h"
#include "base64.h"
#include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#include <syslog.h>
#endif
#include <string.h>
#include <krb.h>
#include <des.h>
@@ -129,7 +130,8 @@ krb4_decode(void *app_data, void *buf, int len, int level,
                    (struct sockaddr_in *)REMOTE_ADDR,
                    (struct sockaddr_in *)LOCAL_ADDR, &m);
  if(e) {
	syslog(LOG_ERR, "krb4_decode: %s", krb_get_err_text(e));
    struct SessionHandle *data = conn->data;
    infof(data, "krb4_decode: %s\n", krb_get_err_text(e));
    return -1;
  }
  memmove(buf, m.app_data, m.app_length);