------------------------------------------------------------ revno: 6398 fixes bug: https://launchpad.net/bugs/1088916 author: Joakim Koskela <jookos@xxxxxxxxx> committer: Miika Komu <miika@xxxxxx> branch nick: hipl timestamp: Sat 2012-12-22 11:47:25 +0200 message: A bug fix to opportunistic registration from Joakim Koskela Opportunistic registration failed because version number was not set correctly. See bug #1088916 in launchpad. modified: libhipl/opp_mode.c -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'libhipl/opp_mode.c' --- libhipl/opp_mode.c 2012-05-12 10:21:32 +0000 +++ libhipl/opp_mode.c 2012-12-22 09:47:25 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Aalto University and RWTH Aachen University. + * Copyright (c) 2010, 2012 Aalto University and RWTH Aachen University. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -130,6 +130,8 @@ /* For service registration routines */ ctx->hadb_entry->local_controls = opp_entry->local_controls; ctx->hadb_entry->peer_controls = opp_entry->peer_controls; + /* Copy the hip version as well */ + ctx->hadb_entry->hip_version = opp_entry->hip_version; if (hip_replace_pending_requests(opp_entry, ctx->hadb_entry) == -1) { HIP_DEBUG("RVS: Error moving the pending requests to a new HA");