Fixed memory access issue in the new hamserver implementation.