]> git.pld-linux.org Git - packages/lopster.git/blame - lopster-protocol.patch
- updated to 1.0.1
[packages/lopster.git] / lopster-protocol.patch
CommitLineData
de688ede
AM
1diff -urN lopster-0.9.8.org/src/connection.c lopster-0.9.8/src/connection.c
2--- lopster-0.9.8.org/src/connection.c Wed May 9 20:22:15 2001
3+++ lopster-0.9.8/src/connection.c Wed May 9 20:23:40 2001
4@@ -936,8 +936,14 @@
5 return;
6 }
7 }
8-
9- protocol = getprotobyname("IP")->p_proto;
10+
11+ {
12+ struct protoent *prt = getprotobyname("IP");
13+ if (prt)
14+ protocol = prt->p_proto;
15+ else
16+ protocol = 0;
17+ }
18 sock = socket(AF_INET, SOCK_STREAM, protocol);
19
20 if (sock < 0) {
This page took 0.093848 seconds and 4 git commands to generate.