aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/conversation_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/conversation_api.c')
-rw-r--r--src/conversation/conversation_api.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c
index 24cd52eb2..a9efb7495 100644
--- a/src/conversation/conversation_api.c
+++ b/src/conversation/conversation_api.c
@@ -667,9 +667,20 @@ GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
667 "CONVERSATION", 667 "CONVERSATION",
668 "LINE", 668 "LINE",
669 &line)) 669 &line))
670 {
671 GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
672 "CONVERSATION",
673 "LINE");
670 return NULL; 674 return NULL;
675 }
671 if (line >= (1 << 31)) 676 if (line >= (1 << 31))
677 {
678 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
679 "CONVERSATION",
680 "LINE",
681 _("number too large"));
672 return NULL; 682 return NULL;
683 }
673 phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone); 684 phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone);
674 if (GNUNET_OK != 685 if (GNUNET_OK !=
675 GNUNET_CRYPTO_get_peer_identity (cfg, 686 GNUNET_CRYPTO_get_peer_identity (cfg,