]> git.pld-linux.org Git - packages/lopster.git/commitdiff
fixes ugly bug lopster-0_9_8-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 9 May 2001 18:30:22 +0000 (18:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lopster-protocol.patch -> 1.1

lopster-protocol.patch [new file with mode: 0644]

diff --git a/lopster-protocol.patch b/lopster-protocol.patch
new file mode 100644 (file)
index 0000000..10f022d
--- /dev/null
@@ -0,0 +1,20 @@
+diff -urN lopster-0.9.8.org/src/connection.c lopster-0.9.8/src/connection.c
+--- lopster-0.9.8.org/src/connection.c Wed May  9 20:22:15 2001
++++ lopster-0.9.8/src/connection.c     Wed May  9 20:23:40 2001
+@@ -936,8 +936,14 @@
+       return;
+     }
+   }
+-  
+-  protocol = getprotobyname("IP")->p_proto;
++
++  {
++      struct protoent *prt = getprotobyname("IP");
++      if (prt)
++        protocol = prt->p_proto;
++      else
++        protocol = 0;
++  }
+   sock = socket(AF_INET, SOCK_STREAM, protocol);
+   
+   if (sock < 0) {
This page took 0.097935 seconds and 4 git commands to generate.