Commit 900e076d authored by Russ Cox's avatar Russ Cox

handle zeroed interface in ifaceI2I

R=r
OCL=16938
CL=16938
parent 32d00e6c
......@@ -231,7 +231,6 @@ sys·ifaceI2T(Sigt *st, Map *im, void *it, void *ret)
void
sys·ifaceI2I(Sigi *si, Map *im, void *it, Map *retim, void *retit)
{
if(debug) {
prints("I2I sigi=");
printsigi(si);
......@@ -241,14 +240,16 @@ sys·ifaceI2I(Sigi *si, Map *im, void *it, Map *retim, void *retit)
}
if(im == nil) {
throw("ifaceI2I: nil map");
return;
}
// If incoming interface is uninitialized (zeroed)
// make the outgoing interface zeroed as well.
retim = nil;
retit = nil;
} else {
retit = it;
retim = im;
if(im->sigi != si)
retim = hashmap(si, im->sigt);
}
if(debug) {
prints("I2I ret=");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment