diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-11 14:54:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-11 14:54:07 +0000 |
commit | 4b1ebbf65f3798f9ce2863634fd3ed3de19daa11 (patch) | |
tree | 4d942705c8e1542f5b9feee9d98b5dae346f8c53 /src/peerinfo-tool | |
parent | 457cbc08b5d816990b5dc1ee8c988eb4dc6f528a (diff) | |
download | gnunet-4b1ebbf65f3798f9ce2863634fd3ed3de19daa11.tar.gz gnunet-4b1ebbf65f3798f9ce2863634fd3ed3de19daa11.zip |
-LRN: Don't call a NULL StA function
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 6902e605c..915e86bc2 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -519,7 +519,9 @@ add_addr_to_hello (void *cls, size_t max, void *buffer) | |||
519 | return 0; | 519 | return 0; |
520 | return add_addr_to_hello (cls, max, buffer); | 520 | return add_addr_to_hello (cls, max, buffer); |
521 | } | 521 | } |
522 | if (GNUNET_OK == papi->string_to_address (papi->cls, &exp1[1], exp2 - &exp1[1], &addr, &addr_len)) | 522 | if ((papi->string_to_address != NULL) && (GNUNET_OK == |
523 | papi->string_to_address (papi->cls, &exp1[1], exp2 - &exp1[1], &addr, | ||
524 | &addr_len))) | ||
523 | { | 525 | { |
524 | struct GNUNET_HELLO_Address address; | 526 | struct GNUNET_HELLO_Address address; |
525 | int ret; | 527 | int ret; |