File xtrans-sig11.diff of Package xorg-x11-xtrans-devel

diff --git a/Xtranssock.c b/Xtranssock.c
index ad3e116..c698555 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -528,7 +528,7 @@ TRANS(SocketReopen) (int i, int type, int fd, char *port)
     ciptr->family = AF_UNIX;
     memcpy(ciptr->peeraddr, ciptr->addr, sizeof(struct sockaddr));
     ciptr->port = rindex(addr->sa_data, ':');
-    if (ciptr->port[0] == ':') ciptr->port++; /* port should now point to portnum or NULL */
+    if (ciptr->port && ciptr->port[0] == ':') ciptr->port++; /* port should now point to portnum or NULL */
     return ciptr;
 }
 
openSUSE Build Service is sponsored by