Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
e4cd57a7
Commit
e4cd57a7
authored
Jul 01, 2007
by
Hallvard Furuseth
Browse files
ITS#5035 - in St_read(), don't pass time_t* (st_data[i]->last) to lutil_atol().
parent
a95a8103
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slurpd/st.c
View file @
e4cd57a7
...
...
@@ -180,6 +180,7 @@ St_read(
int
rc
;
char
*
hostname
,
*
port
,
*
timestamp
,
*
seq
,
*
p
,
*
t
;
int
found
;
long
last
;
if
(
st
==
NULL
)
{
return
-
1
;
...
...
@@ -235,11 +236,11 @@ St_read(
if
(
!
strcmp
(
hostname
,
sglob
->
st
->
st_data
[
i
]
->
hostname
)
&&
lutil_atoi
(
&
p
,
port
)
==
0
&&
p
==
sglob
->
st
->
st_data
[
i
]
->
port
)
{
found
=
1
;
if
(
lutil_atol
(
&
sglob
->
st
->
st_data
[
i
]
->
last
,
timestamp
)
!=
0
||
lutil_atoi
(
&
sglob
->
st
->
st_data
[
i
]
->
seq
,
seq
)
!=
0
)
{
found
=
0
;
found
=
(
lutil_atol
(
&
last
,
timestamp
)
==
0
)
;
if
(
found
)
{
sglob
->
st
->
st_data
[
i
]
->
last
=
last
;
if
(
lutil_atoi
(
&
sglob
->
st
->
st_data
[
i
]
->
seq
,
seq
)
!=
0
)
found
=
0
;
}
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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