]> arthur.barton.de Git - netatalk.git/commitdiff
Fix offset calculation
authorFrank Lahm <franklahm@googlemail.com>
Sun, 1 Apr 2012 11:41:49 +0000 (13:41 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Sun, 1 Apr 2012 11:41:49 +0000 (13:41 +0200)
etc/afpd/status.c

index 20db0d5a1d7a4d07c3f210c4d950c070ef19687c..4beb4285142b8c1fcaeb436a92e501c40166122e 100644 (file)
@@ -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));