comparison svr-tcpfwd.c @ 267:7ce577234a10

* svr-tcpfwd.c: should be MAX_NAME_LEN not MAXNAMLEN
author Matt Johnston <matt@ucc.asn.au>
date Sun, 15 Jan 2006 06:39:48 +0000
parents c049490e43fe
children 454a34b2dfd1 75940fef22dd
comparison
equal deleted inserted replaced
266:e37b160c414c 267:7ce577234a10
78 } 78 }
79 79
80 reqname = buf_getstring(ses.payload, &namelen); 80 reqname = buf_getstring(ses.payload, &namelen);
81 wantreply = buf_getbool(ses.payload); 81 wantreply = buf_getbool(ses.payload);
82 82
83 if (namelen > MAXNAMLEN) { 83 if (namelen > MAX_NAME_LEN) {
84 TRACE(("name len is wrong: %d", namelen)) 84 TRACE(("name len is wrong: %d", namelen))
85 goto out; 85 goto out;
86 } 86 }
87 87
88 if (strcmp("tcpip-forward", reqname) == 0) { 88 if (strcmp("tcpip-forward", reqname) == 0) {