aboutsummaryrefslogtreecommitdiff
path: root/networking/httppost.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2015-05-15 10:25:07 +0200
committerBjørn Mork <bjorn@mork.no>2015-05-15 10:25:07 +0200
commit35294332b2e75151b4b614719ee6522e1afd8748 (patch)
treefde51b865f9a08ebd3ef87bc382dec5bb165f4c9 /networking/httppost.c
parent02013228914a1d17e8df15d4e2b7950469395a5c (diff)
ripe-atlas-fw: imported version 45504550
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'networking/httppost.c')
-rw-r--r--networking/httppost.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/httppost.c b/networking/httppost.c
index 26934ec..6b8b533 100644
--- a/networking/httppost.c
+++ b/networking/httppost.c
@@ -150,6 +150,15 @@ int httppost_main(int argc, char *argv[])
}
url= argv[optind];
+ if (atlas_id)
+ {
+ if (!validate_atlas_id(atlas_id))
+ {
+ fprintf(stderr, "bad atlas ID '%s'", atlas_id);
+ return 1;
+ }
+ }
+
if (maxpostsizestr)
{
maxpostsize= strtoul(maxpostsizestr, &check, 0);