pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Merged in EionRobb/security/EionRobb/fix-for-crash-when-sending-invalid-xml-e-1487474010880 (pull request #15)
release-2.x.y
2017-03-01, Gary Kramlich
e85451478ebe
Merged in EionRobb/security/EionRobb/fix-for-crash-when-sending-invalid-xml-e-1487474010880 (pull request #15)
Fix for crash when sending invalid xml entities separated by whitespace, eg " 3000;"
Approved-by: Gary Kramlich
Approved-by: dx
/* This file is part of the Project Athena Zephyr Notification System.
* It contains source for the ZClosePort function.
*
* Created by: Robert French
*
* Copyright (c) 1987 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include
"internal.h"
Code_t
ZClosePort
()
{
if
(
__Zephyr_fd
>=
0
&&
__Zephyr_open
)
(
void
)
close
(
__Zephyr_fd
);
__Zephyr_fd
=
-1
;
__Zephyr_open
=
0
;
return
(
ZERR_NONE
);
}