Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Brian Smith
nettle
Commits
38f1828d
Commit
38f1828d
authored
Nov 07, 2002
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sexp_transport_iterator_first): Fixed bug,
length was mishandled. Rev: src/nettle/sexp-transport.c:1.3
parent
d73ccbc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sexp-transport.c
sexp-transport.c
+5
-5
No files found.
sexp-transport.c
View file @
38f1828d
...
...
@@ -60,7 +60,7 @@ sexp_transport_iterator_first(struct sexp_iterator *iterator,
{
/* Found transport encoding */
struct
base64_decode_ctx
ctx
;
unsigned
length
;
unsigned
coded_
length
;
unsigned
end
;
for
(
end
=
++
in
;
end
<
length
&&
input
[
end
]
!=
'}'
;
end
++
)
...
...
@@ -70,13 +70,13 @@ sexp_transport_iterator_first(struct sexp_iterator *iterator,
return
0
;
base64_decode_init
(
&
ctx
);
length
=
end
-
in
;
coded_
length
=
end
-
in
;
if
(
base64_decode_update
(
&
ctx
,
&
length
,
input
+
out
,
length
,
input
+
in
)
if
(
base64_decode_update
(
&
ctx
,
&
coded_
length
,
input
+
out
,
coded_
length
,
input
+
in
)
&&
base64_decode_final
(
&
ctx
))
{
out
+=
length
;
out
+=
coded_
length
;
in
=
end
+
1
;
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment