aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-10-05 01:24:10 +0000
committerChristian Grothoff <christian@grothoff.org>2014-10-05 01:24:10 +0000
commitbaf6ff252d87b4f2558013c1caedfea6501e6753 (patch)
treeb77bd8e3eff21e88bc3ce1d08f09acbdbb7b0033 /src/dv
parent75bfe7c6d377988e29128e930eae2a325fd0705b (diff)
downloadgnunet-baf6ff252d87b4f2558013c1caedfea6501e6753.tar.gz
gnunet-baf6ff252d87b4f2558013c1caedfea6501e6753.zip
-fix return values, add missing return
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index abade848f..c6ba49f12 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -1779,7 +1779,8 @@ initiate_set_union (void *cls,
1779 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the other peer violated the protocol 1779 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the other peer violated the protocol
1780 */ 1780 */
1781static int 1781static int
1782handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer, 1782handle_dv_route_message (void *cls,
1783 const struct GNUNET_PeerIdentity *peer,
1783 const struct GNUNET_MessageHeader *message) 1784 const struct GNUNET_MessageHeader *message)
1784{ 1785{
1785 const struct RouteMessage *rm; 1786 const struct RouteMessage *rm;
@@ -1848,7 +1849,7 @@ handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer,
1848 if (NULL == neighbor) 1849 if (NULL == neighbor)
1849 { 1850 {
1850 GNUNET_break (0); 1851 GNUNET_break (0);
1851 return GNUNET_SYSERR; 1852 return GNUNET_OK;
1852 } 1853 }
1853 target = GNUNET_new (struct Target); 1854 target = GNUNET_new (struct Target);
1854 target->peer = rm->sender; 1855 target->peer = rm->sender;
@@ -1867,7 +1868,7 @@ handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer,
1867 { 1868 {
1868 GNUNET_break_op (0); 1869 GNUNET_break_op (0);
1869 GNUNET_free (target); 1870 GNUNET_free (target);
1870 return GNUNET_SYSERR; 1871 return GNUNET_OK;
1871 } 1872 }
1872 add_new_route (target, neighbor); 1873 add_new_route (target, neighbor);
1873 } 1874 }
@@ -1894,7 +1895,7 @@ handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer,
1894 if (NULL == neighbor) 1895 if (NULL == neighbor)
1895 { 1896 {
1896 GNUNET_break (0); 1897 GNUNET_break (0);
1897 return GNUNET_SYSERR; 1898 return GNUNET_OK;
1898 } 1899 }
1899 target = GNUNET_new (struct Target); 1900 target = GNUNET_new (struct Target);
1900 target->peer = rm->sender; 1901 target->peer = rm->sender;
@@ -1909,6 +1910,7 @@ handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer,
1909 { 1910 {
1910 GNUNET_break_op (0); 1911 GNUNET_break_op (0);
1911 GNUNET_free (target); 1912 GNUNET_free (target);
1913 return GNUNET_OK;
1912 } 1914 }
1913 add_new_route (target, neighbor); 1915 add_new_route (target, neighbor);
1914 } 1916 }