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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c
index 9dfc6e913..1c71217bd 100644
--- a/src/conversation/conversation_api.c
+++ b/src/conversation/conversation_api.c
@@ -624,6 +624,7 @@ reconnect_phone (struct GNUNET_CONVERSATION_Phone *phone)
624 * @param ego ego to use for name resolution (when determining caller ID) 624 * @param ego ego to use for name resolution (when determining caller ID)
625 * @param event_handler how to notify the owner of the phone about events 625 * @param event_handler how to notify the owner of the phone about events
626 * @param event_handler_cls closure for @a event_handler 626 * @param event_handler_cls closure for @a event_handler
627 * @return NULL on error (no valid line configured)
627 */ 628 */
628struct GNUNET_CONVERSATION_Phone * 629struct GNUNET_CONVERSATION_Phone *
629GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg, 630GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -640,6 +641,8 @@ GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
640 "LINE", 641 "LINE",
641 &line)) 642 &line))
642 return NULL; 643 return NULL;
644 if (line >= (1 << 31))
645 return NULL;
643 phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone); 646 phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone);
644 if (GNUNET_OK != 647 if (GNUNET_OK !=
645 GNUNET_CRYPTO_get_peer_identity (cfg, 648 GNUNET_CRYPTO_get_peer_identity (cfg,