diff options
Diffstat (limited to 'src/identity')
-rw-r--r-- | src/identity/identity_api.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 905b3fd8b..1601ae2fd 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -671,7 +671,7 @@ GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *h, | |||
671 | if (NULL == h->mq) | 671 | if (NULL == h->mq) |
672 | return NULL; | 672 | return NULL; |
673 | slen = strlen (service_name) + 1; | 673 | slen = strlen (service_name) + 1; |
674 | if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct GetDefaultMessage)) | 674 | if (slen >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct GetDefaultMessage)) |
675 | { | 675 | { |
676 | GNUNET_break (0); | 676 | GNUNET_break (0); |
677 | return NULL; | 677 | return NULL; |
@@ -722,7 +722,7 @@ GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *h, | |||
722 | if (NULL == h->mq) | 722 | if (NULL == h->mq) |
723 | return NULL; | 723 | return NULL; |
724 | slen = strlen (service_name) + 1; | 724 | slen = strlen (service_name) + 1; |
725 | if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct SetDefaultMessage)) | 725 | if (slen >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct SetDefaultMessage)) |
726 | { | 726 | { |
727 | GNUNET_break (0); | 727 | GNUNET_break (0); |
728 | return NULL; | 728 | return NULL; |
@@ -773,7 +773,7 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *h, | |||
773 | if (NULL == h->mq) | 773 | if (NULL == h->mq) |
774 | return NULL; | 774 | return NULL; |
775 | slen = strlen (name) + 1; | 775 | slen = strlen (name) + 1; |
776 | if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct CreateRequestMessage)) | 776 | if (slen >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct CreateRequestMessage)) |
777 | { | 777 | { |
778 | GNUNET_break (0); | 778 | GNUNET_break (0); |
779 | return NULL; | 779 | return NULL; |
@@ -830,9 +830,9 @@ GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *h, | |||
830 | return NULL; | 830 | return NULL; |
831 | slen_old = strlen (old_name) + 1; | 831 | slen_old = strlen (old_name) + 1; |
832 | slen_new = strlen (new_name) + 1; | 832 | slen_new = strlen (new_name) + 1; |
833 | if ( (slen_old >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 833 | if ( (slen_old >= GNUNET_MAX_MESSAGE_SIZE) || |
834 | (slen_new >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 834 | (slen_new >= GNUNET_MAX_MESSAGE_SIZE) || |
835 | (slen_old + slen_new >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct RenameMessage)) ) | 835 | (slen_old + slen_new >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct RenameMessage)) ) |
836 | { | 836 | { |
837 | GNUNET_break (0); | 837 | GNUNET_break (0); |
838 | return NULL; | 838 | return NULL; |
@@ -885,7 +885,7 @@ GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *h, | |||
885 | if (NULL == h->mq) | 885 | if (NULL == h->mq) |
886 | return NULL; | 886 | return NULL; |
887 | slen = strlen (name) + 1; | 887 | slen = strlen (name) + 1; |
888 | if (slen >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct DeleteMessage)) | 888 | if (slen >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct DeleteMessage)) |
889 | { | 889 | { |
890 | GNUNET_break (0); | 890 | GNUNET_break (0); |
891 | return NULL; | 891 | return NULL; |