Fix a null access with encryption+UDP.