Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
570f6f5ebcdb52a8c359dfc86c4fae5f8b6813c8...7e1c3c3d3944249c0568625014dad2da8d19821c
Commits (1)
Fix CID 319119: Unchecked return value from library
· 7e1c3c3d
Rob Swindell
authored
Mar 13, 2022
Actually probably doesn't fix it, but what'evs
7e1c3c3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/netmail.cpp
src/sbbs3/netmail.cpp
+3
-3
No files found.
src/sbbs3/netmail.cpp
View file @
7e1c3c3d
...
@@ -1049,7 +1049,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
...
@@ -1049,7 +1049,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
if
(
fexistcase
(
str2
))
{
if
(
fexistcase
(
str2
))
{
strListFree
(
&
rcpt_list
);
strListFree
(
&
rcpt_list
);
bputs
(
text
[
FileAlreadyThere
]);
bputs
(
text
[
FileAlreadyThere
]);
remove
(
msgpath
);
(
void
)
remove
(
msgpath
);
return
(
false
);
return
(
false
);
}
}
{
/* Remote */
{
/* Remote */
...
@@ -1065,7 +1065,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
...
@@ -1065,7 +1065,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
if
(
ch
==
quit_key
()
||
sys_status
&
SS_ABORT
)
{
if
(
ch
==
quit_key
()
||
sys_status
&
SS_ABORT
)
{
bputs
(
text
[
Aborted
]);
bputs
(
text
[
Aborted
]);
strListFree
(
&
rcpt_list
);
strListFree
(
&
rcpt_list
);
remove
(
msgpath
);
(
void
)
remove
(
msgpath
);
return
(
false
);
return
(
false
);
}
}
for
(
x
=
0
;
x
<
cfg
.
total_prots
;
x
++
)
for
(
x
=
0
;
x
<
cfg
.
total_prots
;
x
++
)
...
@@ -1084,7 +1084,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
...
@@ -1084,7 +1084,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
else
{
else
{
bprintf
(
text
[
FileNotReceived
],
title
);
bprintf
(
text
[
FileNotReceived
],
title
);
strListFree
(
&
rcpt_list
);
strListFree
(
&
rcpt_list
);
remove
(
msgpath
);
(
void
)
remove
(
msgpath
);
return
(
false
);
return
(
false
);
}
}
}
}
...
...