aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFraser Adams <fraser.adams@blueyonder.co.uk>2013-11-26 18:50:56 +0000
committerFraser Adams <fraser.adams@blueyonder.co.uk>2013-11-26 18:50:56 +0000
commit0075a5307e378a4078b34140e4ff3966cc2edb7f (patch)
tree13a180c9d29a35496c84acf50c08acabc1984a36 /src
parent3e4a22b4a9648dd606cb35814d5100b5ef948ace (diff)
in getprotoent return 0 rather than null if we reach eof in our protocol database
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 30947fe2..bb9676cc 100644
--- a/src/library.js
+++ b/src/library.js
@@ -7741,7 +7741,7 @@ LibraryManager.library = {
// struct protoent *getprotoent(void);
// reads the next entry from the protocols 'database' or return NULL if 'eof'
if (_setprotoent.index === PROTOCOL_LIST.length) {
- return null;
+ return 0;
} else {
var result = PROTOCOL_LIST[_setprotoent.index++];
return result;