thinko in previous patch
This commit is contained in:
parent
38fb4d82a5
commit
e8b2b39a37
|
@ -21,6 +21,9 @@
|
|||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.85 1999/06/07 19:42:39 paul
|
||||
* isdn_net_getpeer() fixed to return correct `outgoing' flag
|
||||
*
|
||||
* Revision 1.84 1999/04/18 14:06:55 fritz
|
||||
* Removed TIMRU stuff.
|
||||
*
|
||||
|
@ -2928,7 +2931,7 @@ isdn_net_getpeer(isdn_net_ioctl_phone *phone, isdn_net_ioctl_phone *peer)
|
|||
/* for pre-bound channels, we need this extra check */
|
||||
if ( strncmp(dev->num[idx],"???",3) == 0 ) return -ENOTCONN;
|
||||
strncpy(phone->phone,dev->num[idx],ISDN_MSNLEN);
|
||||
phone->outgoing=USG_OUTGOING(dev->num[idx]);
|
||||
phone->outgoing=USG_OUTGOING(dev->usage[idx]);
|
||||
if ( copy_to_user(peer,phone,sizeof(*peer)) ) return -EFAULT;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue