From b9c2e096a53df87d9e581eebe464063c93d5f254 Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Sun, 1 Apr 2012 13:41:49 +0200 Subject: [PATCH] Fix offset calculation --- etc/afpd/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/afpd/status.c b/etc/afpd/status.c index 20db0d5a..4beb4285 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -479,7 +479,8 @@ krb5_cleanup: offset_calc: /* Calculate and store offset for UTF8ServerName */ - *diroffset += sizeof(uint16_t); + if (uam_gss_enabled()) + *diroffset += sizeof(uint16_t); offset = htons(data - begin); memcpy(begin + *diroffset, &offset, sizeof(uint16_t)); -- 2.39.2