[Users] Domain: is_from_local() is case sensitive in caching mode.

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Dec 8 18:22:05 CET 2006


Hi George,

you are right - the original patch was incomplete - I made a fix both on 
devel and stable version. It should work with no problem.

Thanks for report,
Bogdan

Papadopoulos Georgios wrote:

> hello,
>  
> Back in March I posted the following 
> http://openser.org/pipermail/users/2006-March/003426.html
> The problem was solved with the patch that Klaus sent 
> http://openser.org/pipermail/users/2006-March/003456.html
> However in Openser 1.1 it seems that there is still a problem. The 
> following code shows how
> hash("iptel.org") != hash("ipTel.org")
>  
> Any patches for this?
>  
> thank you
>  
> George
>  
>  
>  
> #include "hash_func.h"
>  
> int main(int a, char* arg){
>         char s1[50] = "iptel.org";
>         char s2[50] = "ipTel.org";
>  
>         str str1, str2;
>         str1.s = s1;
>         str1.len = strlen(s1);
>         str2.s = s2;
>         str2.len = strlen(s2);
>  
>         printf("s1=%s s2=%s\n", s1, s2);
>  
>         unsigned int r1 = core_case_hash(&str1, 0, 128);
>         unsigned int r2 = core_case_hash(&str2, 0, 128);
>         printf("r1=%u r2=%u\n", r1, r2);
>  
>         return 0;
> }
>  
>  
>
>
>   Disclaimer
>
> The information in this e-mail and any attachments is confidential. It 
> is intended solely for the attention and use of the named 
> addressee(s). If you are not the intended recipient, or person 
> responsible for delivering this information to the intended recipient, 
> please notify the sender immediately. Unless you are the intended 
> recipient or his/her representative you are not authorized to, and 
> must not, read, copy, distribute, use or retain this message or any 
> part of it. E-mail transmission cannot be guaranteed to be secure or 
> error-free as information could be intercepted, corrupted, lost, 
> destroyed, arrive late or incomplete, or contain viruses.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>





More information about the sr-users mailing list