Branch: Tag:

2013-10-12

2013-10-12 13:00:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

decode_value(): Kludge: Keep function wrapper for programs needing parent.

Fixes issue with getting "Parent lost, cannot clone program." from
SSL.handshake()->*derive*_master_secret() in dumped Pikes.

3225:    break;    }    +  if ((p->flags & PROGRAM_NEEDS_PARENT)) { +  EDB(2, fprintf(stderr, "%*sKeeping %s to keep parent pointer.\n", +  data->depth, "", +  get_name_of_type(TYPEOF(Pike_sp[-1])))); +  break; +  } +     add_ref(p);    pop_stack();    push_program(p);