X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fstatus.c;fp=etc%2Fafpd%2Fstatus.c;h=ec1025dda3922106a2325290fd9ff59fb7d13ce2;hb=939eb9da6116bd502cdae97f84541993848071b4;hp=eb5b99b30b970a95f96547e6e87260be38282c9a;hpb=53aafa98097fa39b62fd0c7914db291a393aa01b;p=netatalk.git diff --git a/etc/afpd/status.c b/etc/afpd/status.c index eb5b99b3..ec1025dd 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -95,7 +95,7 @@ static void status_flags(char *data, static int status_server(char *data, const char *server, const struct afp_options *options) { char *start = data; - char *Obj, *Type, *Zone; + char *Obj; char buf[32]; uint16_t status; size_t len; @@ -364,7 +364,6 @@ static size_t status_directorynames(char *data, data += offset; char *DirectoryNamesCount = data++; - char *DirectoryNames = data; size_t size = sizeof(uint8_t); *DirectoryNamesCount = 0; @@ -441,8 +440,11 @@ static size_t status_directorynames(char *data, } krb5_unparse_name(context, entry.principal, &principal); +#ifdef HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS + krb5_free_keytab_entry_contents(context, &entry); +#elif defined(HAVE_KRB5_KT_FREE_ENTRY) krb5_kt_free_entry(context, &entry); - +#endif append_directoryname(&data, offset, &size, @@ -501,7 +503,7 @@ static size_t status_utf8servername(char *data, int *nameoffset, uint16_t namelen; size_t len; char *begin = data; - uint16_t offset, status; + uint16_t offset; memcpy(&offset, data + *nameoffset, sizeof(offset)); offset = ntohs(offset); @@ -645,7 +647,7 @@ void set_signature(struct afp_options *options) { char *servername_conf; int header = 0; char buf[1024], *p; - FILE *fp = NULL, *randomp; + FILE *fp = NULL; size_t len; char *server_tmp;