projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
sys
/
netiso
/
tp_output.c
diff --git
a/sys/netiso/tp_output.c
b/sys/netiso/tp_output.c
index
d2611c3
..
e625e16
100644
(file)
--- a/
sys/netiso/tp_output.c
+++ b/
sys/netiso/tp_output.c
@@
-30,7
+30,8
@@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)tp_output.c 7.10 (Berkeley) 6/27/91
+ * From: @(#)tp_output.c 7.10 (Berkeley) 6/27/91
+ * $Id: tp_output.c,v 1.2 1993/09/09 23:35:48 rgrimes Exp $
*/
/***********************************************************
*/
/***********************************************************
@@
-59,12
+60,10
@@
SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
+
/*
* ARGO TP
*
/*
* ARGO TP
*
- * $Header: tp_output.c,v 5.4 88/11/18 17:28:08 nhall Exp $
- * $Source: /usr/argo/sys/netiso/RCS/tp_output.c,v $
- *
* In here is tp_ctloutput(), the guy called by [sg]etsockopt(),
*/
* In here is tp_ctloutput(), the guy called by [sg]etsockopt(),
*/
@@
-163,7
+162,13
@@
tp_consistency( tpcb, cmd, param )
printf("p_class 0x%x, class_to_use 0x%x\n", param->p_class,
class_to_use);
ENDDEBUG
printf("p_class 0x%x, class_to_use 0x%x\n", param->p_class,
class_to_use);
ENDDEBUG
+#ifdef XXXRWGXXX
+ /* this next line is questionable p_netservice is u_char, how can it
+ * ever be less than 0 ??
+ */
if((param->p_netservice < 0) || (param->p_netservice > TP_MAX_NETSERVICES)){
if((param->p_netservice < 0) || (param->p_netservice > TP_MAX_NETSERVICES)){
+#endif
+ if(/*(param->p_netservice < 0) ||*/ (param->p_netservice > TP_MAX_NETSERVICES)){
error = EINVAL; goto done;
}
if( (param->p_class & TP_CLASSES_IMPLEMENTED) == 0 ) {
error = EINVAL; goto done;
}
if( (param->p_class & TP_CLASSES_IMPLEMENTED) == 0 ) {