Fixed weird logical choice :)
authorKrista Bennett <krista@pep-project.org>
Fri, 20 Apr 2018 15:08:53 +0200
changeset 26183cc1716b444e
parent 2613 1a84490f3f3f
child 2619 30069aa9bd79
child 2627 518c493198a9
child 2628 28f07dbbafea
child 2629 211719bc9cf7
Fixed weird logical choice :)
src/message_api.c
     1.1 --- a/src/message_api.c	Thu Apr 19 08:53:18 2018 +0200
     1.2 +++ b/src/message_api.c	Fri Apr 20 15:08:53 2018 +0200
     1.3 @@ -1846,7 +1846,7 @@
     1.4      if (!src->from->address || !src->to->ident || !src->to->ident->address)
     1.5          return PEP_ILLEGAL_VALUE;
     1.6              
     1.7 -    if (!strcasecmp(src->from->address, src->to->ident->address) == 0)
     1.8 +    if (strcasecmp(src->from->address, src->to->ident->address) != 0)
     1.9          return PEP_ILLEGAL_VALUE;
    1.10      
    1.11      stringlist_t* keys = NULL;