Saving the configuration with SWAT is broken. cgi_load_variables() passes wrong string length to convert_string_allocate(). Patch will follow.
Created attachment 3331 [details] Fix-saving-of-the-config-file-in-SWAT
This will be fixed with Samba 3.2.0 rc2.