Quoting Igor Brezac <igor at ipass.net>: > > Your check may fail if realm is NULL. Use > > if (realm && *realm != '\0') { > Thank you, that works grate now! Dmitry