mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 12:24:19 -05:00
Fix 't' tag option
This commit is contained in:
parent
70314bd98b
commit
24b7f5c42c
1 changed files with 6 additions and 1 deletions
|
|
@ -64,6 +64,7 @@ int
|
|||
main( int argc, char **argv )
|
||||
{
|
||||
char *s;
|
||||
int tag;
|
||||
|
||||
int fd, rc;
|
||||
BerElement *ber;
|
||||
|
|
@ -143,10 +144,14 @@ main( int argc, char **argv )
|
|||
break;
|
||||
|
||||
case 's': /* string */
|
||||
case 't': /* tag for the next element */
|
||||
buf = getbuf();
|
||||
rc = ber_printf( ber, fmt, buf );
|
||||
break;
|
||||
case 't': /* tag for the next element */
|
||||
buf = getbuf();
|
||||
tag = atoi(buf);
|
||||
rc = ber_printf( ber, fmt, tag );
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf( stderr, "encode: unknown fmt %c\n", *fmt );
|
||||
|
|
|
|||
Loading…
Reference in a new issue