diff options
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 4c8fd5ce8..25dfda59b 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -1193,6 +1193,23 @@ run_with_zone_pkey (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
1193 | ret = 1; | 1193 | ret = 1; |
1194 | return; | 1194 | return; |
1195 | } | 1195 | } |
1196 | if (NULL == expirationstring) | ||
1197 | { | ||
1198 | fprintf (stderr, | ||
1199 | _ ("Missing option `%s' for operation `%s'\n"), | ||
1200 | "-e", | ||
1201 | _ ("add")); | ||
1202 | GNUNET_SCHEDULER_shutdown (); | ||
1203 | ret = 1; | ||
1204 | return; | ||
1205 | } | ||
1206 | if (GNUNET_OK != parse_expiration (expirationstring, &etime_is_rel, &etime)) | ||
1207 | { | ||
1208 | fprintf (stderr, _ ("Invalid time format `%s'\n"), expirationstring); | ||
1209 | GNUNET_SCHEDULER_shutdown (); | ||
1210 | ret = 1; | ||
1211 | return; | ||
1212 | } | ||
1196 | memset (&rd, 0, sizeof(rd)); | 1213 | memset (&rd, 0, sizeof(rd)); |
1197 | rd.data = &pkey; | 1214 | rd.data = &pkey; |
1198 | rd.data_size = sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey); | 1215 | rd.data_size = sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey); |