diff options
| author | David M. Syzdek <david@syzdek.net> | 2019-11-18 21:24:50 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2019-11-18 21:24:50 -0900 |
| commit | 1e48f7631f72462a5a460b4ebf129ba5a4154ce3 (patch) | |
| tree | 7227b842f9472c985fd696567d79e2709063581b /src | |
| parent | aa17dd5630650dc8a0581b39e4d04837b34b7edf (diff) | |
| download | ldap-utils-1e48f7631f72462a5a460b4ebf129ba5a4154ce3.tar.gz ldap-utils-1e48f7631f72462a5a460b4ebf129ba5a4154ce3.tar.bz2 ldap-utils-1e48f7631f72462a5a460b4ebf129ba5a4154ce3.tar.xz ldap-utils-1e48f7631f72462a5a460b4ebf129ba5a4154ce3.zip | |
oidspectool: makeing .desc required
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/oidspectool/oidspectool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/oidspectool/oidspectool.c b/src/utils/oidspectool/oidspectool.c index 38a5865..8b77743 100644 --- a/src/utils/oidspectool/oidspectool.c +++ b/src/utils/oidspectool/oidspectool.c | |||
| @@ -881,6 +881,11 @@ int my_yyoidspec(void) | |||
| 881 | fprintf(stderr, "%s: %s: %i: spec missing .type field\n", PROGRAM_NAME, cur_filename, yylineno); | 881 | fprintf(stderr, "%s: %s: %i: spec missing .type field\n", PROGRAM_NAME, cur_filename, yylineno); |
| 882 | return(1); | 882 | return(1); |
| 883 | }; | 883 | }; |
| 884 | if (!(cur_oidspec->desc)) | ||
| 885 | { | ||
| 886 | fprintf(stderr, "%s: %s: %i: spec missing .desc field\n", PROGRAM_NAME, cur_filename, yylineno); | ||
| 887 | return(1); | ||
| 888 | }; | ||
| 884 | if ((config.verbose)) | 889 | if ((config.verbose)) |
| 885 | printf("adding %s (%s) ...\n", cur_oidspec->oid[0], cur_oidspec->desc[0]); | 890 | printf("adding %s (%s) ...\n", cur_oidspec->oid[0], cur_oidspec->desc[0]); |
| 886 | 891 | ||
