aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-25 12:39:06 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-25 12:39:06 +0200
commit8a408cc2604b6706e7f55391e4006b2b6d070430 (patch)
treed55e4ef4cdf22723b65af551103987f7d72e5582 /src/namestore/gnunet-namestore.c
parentd964554dd20a3668e7fcca913aaa9aa71d2fed6e (diff)
downloadgnunet-8a408cc2604b6706e7f55391e4006b2b6d070430.tar.gz
gnunet-8a408cc2604b6706e7f55391e4006b2b6d070430.zip
ensure that gnunet-namestore at most adds one SOA per zone
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index cbaf9a5cb..5f4daa4a8 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -669,6 +669,19 @@ get_existing_record (void *cls,
669 ret = 1; 669 ret = 1;
670 test_finished (); 670 test_finished ();
671 return; 671 return;
672 case GNUNET_DNSPARSER_TYPE_SOA:
673 if (GNUNET_DNSPARSER_TYPE_SOA == type)
674 {
675 fprintf (
676 stderr,
677 _ (
678 "A SOA record exists already under `%s', cannot add a second SOA to the same zone.\n"),
679 rec_name);
680 ret = 1;
681 test_finished ();
682 return;
683 }
684 break;
672 } 685 }
673 } 686 }
674 switch (type) 687 switch (type)